|
Re: custom table row selection highlights - my bug or Apple's?
I assume you mean needsDisplay. In my tableViewSelectionDidChange: delegate method, if instead of setting needsDisplay on the table, I say
[self.table
I assume you mean needsDisplay. In my tableViewSelectionDidChange: delegate method, if instead of setting needsDisplay on the table, I say
[self.table
|
By
James Walker
·
#1296
·
|
|
Re: custom table row selection highlights - my bug or Apple's?
Can you set the background to needsRefresh?
Can you set the background to needsRefresh?
|
By
Alex Zavatone
·
#1295
·
|
|
custom table row selection highlights - my bug or Apple's?
I have a view-based NSTableView in a scroll view. I want to customized the way that selection highlighting is drawn. So, I set up a controller as a delegate of the table, and in the delegate method
I have a view-based NSTableView in a scroll view. I want to customized the way that selection highlighting is drawn. So, I set up a controller as a delegate of the table, and in the delegate method
|
By
James Walker
·
#1294
·
|
|
Re: Anyone using CloudKit?
I've made some progress on mocking by defining a protocol containing the CKDatabase methods I call; an empty extension to mark CKDatabase as implementing that protocol; and a mock class that
I've made some progress on mocking by defining a protocol containing the CKDatabase methods I call; an empty extension to mark CKDatabase as implementing that protocol; and a mock class that
|
By
Jens Alfke
·
#1293
·
|
|
Re: Anyone using CloudKit?
when I was working on CloudKit I made a separate User account on my Mac with my developer Apple ID, iCloud enabled, then you can see and test the Cloud data using the browser interface.
I found it
when I was working on CloudKit I made a separate User account on my Mac with my developer Apple ID, iCloud enabled, then you can see and test the Cloud data using the browser interface.
I found it
|
By
Bill Pitcher
·
#1292
·
|
|
Re: Anyone using CloudKit?
A specific test zone, perhaps when running in the test configuration?
Do you have a helper that can detect the build configuration used to run your app? I posted some a while ago and can repost if
A specific test zone, perhaps when running in the test configuration?
Do you have a helper that can detect the build configuration used to run your app? I posted some a while ago and can repost if
|
By
Alex Zavatone
·
#1291
·
|
|
Re: Anyone using CloudKit?
I've come up with a solution for this: I can't erase containers/databases, but I can erase a zone by sending a delete followed by a create. That's fine for my purposes because all my code so far
I've come up with a solution for this: I can't erase containers/databases, but I can erase a zone by sending a delete followed by a create. That's fine for my purposes because all my code so far
|
By
Jens Alfke
·
#1290
·
|
|
Re: Anyone using CloudKit?
I seem to recall that Axel Kee on Twitter completed a project that might be related to this. He’s in Singapore and is at @soulchildpls on Twitter.
But you know Apple. It would probably be best to
I seem to recall that Axel Kee on Twitter completed a project that might be related to this. He’s in Singapore and is at @soulchildpls on Twitter.
But you know Apple. It would probably be best to
|
By
Alex Zavatone
·
#1289
·
|
|
Anyone using CloudKit?
Hey, is anyone here using CloudKit? I'm getting started with it and have issues. There's some content on Apple's dev forums, but frankly even the new improved forums have awful UX (why couldn't they
Hey, is anyone here using CloudKit? I'm getting started with it and have issues. There's some content on Apple's dev forums, but frankly even the new improved forums have awful UX (why couldn't they
|
By
Jens Alfke
·
#1288
·
|
|
Anyone using CloudKit?
Hey, is anyone here using CloudKit? I'm getting started with it and have issues. There's some content on Apple's dev forums, but frankly even the new improved forums have awful UX (why couldn't they
Hey, is anyone here using CloudKit? I'm getting started with it and have issues. There's some content on Apple's dev forums, but frankly even the new improved forums have awful UX (why couldn't they
|
By
Jens Alfke
·
#1287
·
|
|
Re: Design Pattern Help Needed
Check Objective-C headers in teh foundation classes. In there, you can see how you can declare a function’s availability to certain OS versions. Once you see how Apple does it in Objective-C, you
Check Objective-C headers in teh foundation classes. In there, you can see how you can declare a function’s availability to certain OS versions. Once you see how Apple does it in Objective-C, you
|
By
Alex Zavatone
·
#1286
·
|
|
Protocols and Default Implementations
Suppose I have a protocol that contains a method with a default implementation:
public protocol A {
func foo()
}
public extension A {
func foo() {
Suppose I have a protocol that contains a method with a default implementation:
public protocol A {
func foo()
}
public extension A {
func foo() {
|
By
Rick Aurbach
·
#1285
·
|
|
Design Pattern Help Needed
I have what must be a common problem, and am looking for some architectural suggestions.
Over the years, I've built custom objects (e.g., popup calendars, button menus, etc) which have now been
I have what must be a common problem, and am looking for some architectural suggestions.
Over the years, I've built custom objects (e.g., popup calendars, button menus, etc) which have now been
|
By
Rick Aurbach
·
#1284
·
|
|
Automated connecting to a WiFi network.
I’m wondering if anyone thinks it’s remotely possible to automatically connect an iOS device to a WiFi network with user permission.
Sort of select a network, wait for a network access over
I’m wondering if anyone thinks it’s remotely possible to automatically connect an iOS device to a WiFi network with user permission.
Sort of select a network, wait for a network access over
|
By
Alex Zavatone
·
#1283
·
|
|
UISplitViewController and iOS14
I have a storyboard-based app based on a split-view. I have edited the split view as shown in the attached screenshot.
My goal is to have a single storyboard that will handle both iPhone and iPad
I have a storyboard-based app based on a split-view. I have edited the split view as shown in the attached screenshot.
My goal is to have a single storyboard that will handle both iPhone and iPad
|
By
Rick Aurbach
·
#1282
·
|
|
Re: CATiledLayer in NSView (Mac) -- how?
OK, I have this problem generally solved.
There’s one more thing I’d like to ask though - when a tile draws to the screen, it is animated. In some cases that’s annoying, like when something
OK, I have this problem generally solved.
There’s one more thing I’d like to ask though - when a tile draws to the screen, it is animated. In some cases that’s annoying, like when something
|
By
Graham Cox
·
#1281
·
|
|
Re: Data structures and user interaction conundrum
Thanks to everyone who chipped in so far — interesting ideas.
The zOrder is in fact a float (CGFloat, so 64 bit), but as Jens points out, it can’t go on indefinitely.
In experimenting with this,
Thanks to everyone who chipped in so far — interesting ideas.
The zOrder is in fact a float (CGFloat, so 64 bit), but as Jens points out, it can’t go on indefinitely.
In experimenting with this,
|
By
Graham Cox
·
#1280
·
|
|
CATiledLayer in NSView (Mac) -- how?
Does anyone have sample code or just a few hints how to use CATiledLayer in a NSView on Mac?
I’m reasonably au fait with using layers in a view in general, but this one is very minimally documented
Does anyone have sample code or just a few hints how to use CATiledLayer in a NSView on Mac?
I’m reasonably au fait with using layers in a view in general, but this one is very minimally documented
|
By
Graham Cox
·
#1279
·
|
|
Determine System Time Format (12hr vs 24hr)
I have been using the following code to determine if a system is set to 12hr or 24hr time for sometime…
NSString *formatStringForHours = [NSDateFormatter dateFormatFromTemplate:@"j"
I have been using the following code to determine if a system is set to 12hr or 24hr time for sometime…
NSString *formatStringForHours = [NSDateFormatter dateFormatFromTemplate:@"j"
|
By
Sandor Szatmari
·
#1278
·
|
|
Re: Data structures and user interaction conundrum
Sadly, this only postpones the problem — you run out of precision after a while. A 64-bit double only has about 52 bits of mantissa, meaning that some sequences of 52 reorders will cause a
Sadly, this only postpones the problem — you run out of precision after a while. A 64-bit double only has about 52 bits of mantissa, meaning that some sequences of 52 reorders will cause a
|
By
Jens Alfke
·
#1277
·
|