Table view cell getting deselected in popover

2012-11-16 Thread Rick Mann
I have a UITableViewCell in a UINavController in a UISplitView. When in portrait, the selected cell gets deselected at some point after dismissing the popover containing the table view. Even though I implemented -didDeselectRowAtIndexPath: and -didUnhighlightRowAtIndexPath: (which get called

Re: Core Data fetch performance

2012-11-16 Thread Mike Abdullah
On 12 Nov 2012, at 14:15, Joerg Simon j_si...@mac.com wrote: This summs it up really nicely: http://wbyoung.tumblr.com/post/27851725562/core-data-growing-pains Links to radar bug reports are within the blog post. The conclusion it is not usable does not hold under iOS6, since nested

Re: Table view cell getting deselected in popover

2012-11-16 Thread Fritz Anderson
On 16 Nov 2012, at 3:15 AM, Rick Mann rm...@latencyzero.com wrote: I have a UITableViewCell in a UINavController in a UISplitView. When in portrait, the selected cell gets deselected at some point after dismissing the popover containing the table view. Even though I implemented

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-16 Thread davelist
On Nov 15, 2012, at 8:22 PM, Rick Mann wrote: On Nov 15, 2012, at 17:04 , Kyle Sluder k...@ksluder.com wrote: Override -didChangeValueForKey:? Apparently we are strongly discouraged from overriding those methods. :-) -- Rick Is this documented? What would be wrong with overriding

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-16 Thread Kyle Sluder
On Nov 16, 2012, at 9:29 AM, davel...@mac.com wrote: On Nov 15, 2012, at 8:22 PM, Rick Mann wrote: On Nov 15, 2012, at 17:04 , Kyle Sluder k...@ksluder.com wrote: Override -didChangeValueForKey:? Apparently we are strongly discouraged from overriding those methods. :-) -- Rick

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-16 Thread Dave Reed
On Nov 16, 2012, at 12:37 PM, Kyle Sluder wrote: On Nov 16, 2012, at 9:29 AM, davel...@mac.com wrote: On Nov 15, 2012, at 8:22 PM, Rick Mann wrote: On Nov 15, 2012, at 17:04 , Kyle Sluder k...@ksluder.com wrote: Override -didChangeValueForKey:? Apparently we are strongly

NSMapTable thread safety (with with ARC and weak objects)

2012-11-16 Thread James Montgomerie
How thread safe is NSMapTable? I know that's a pretty nebulous question, so more concretely: Let's assume I'm using ARC. If I create an NSMapTable with [NSMapTable strongToWeakObjectsMapTable], is it safe to put objects into it that might be referenced from, and perhaps deallocated on, a

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-16 Thread Jerry Krinock
Either make the dependent property as Sean suggested, or write custom setters to post or enqueue a notification. Either is appropriate in different situations. But, indeed, don't second-guess Apple's strong recommendations. I always think of those as, There is some ugly stuff going on under

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-16 Thread Rick Mann
On Nov 16, 2012, at 2:31 , Mike Abdullah cocoa...@mikeabdullah.net wrote: Why are you trying to avoid a bunch of these calls? Is it just to save yourself typing? Typing, and code maintenance. I generally have UI that displays all (or some subset of) the properties of one of my entities. I'd

Bugs with parentViewController?

2012-11-16 Thread Rick Mann
I'm finding that parentViewController is nil for all the UINavigationControllers embedded in my hierarchy (via storyboard). In my case, they're embedded in UISplitViewControllers. I wrote bugs about this, but I wanted to check to see if others are seeing that, or if I've failed to do something

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-16 Thread Kyle Sluder
On Fri, Nov 16, 2012, at 02:00 PM, Rick Mann wrote: On Nov 16, 2012, at 2:31 , Mike Abdullah cocoa...@mikeabdullah.net wrote: Why are you trying to avoid a bunch of these calls? Is it just to save yourself typing? Typing, and code maintenance. I generally have UI that displays all

Re: NSMapTable thread safety (with with ARC and weak objects)

2012-11-16 Thread Quincey Morris
On Nov 16, 2012, at 09:53 , James Montgomerie ja...@montgomerie.net wrote: How thread safe is NSMapTable? I know that's a pretty nebulous question, so more concretely: Let's assume I'm using ARC. If I create an NSMapTable with [NSMapTable strongToWeakObjectsMapTable], is it safe to put

IBButtonAttributesPosition almost works

2012-11-16 Thread N!K
This is probably trivial, but I haven't been able to find a reference in a couple of textbooks, Apple, Google or a place in IB Preferences. IBButtonAttributesPosition allows you to position the button's text in various positions relative to the button. It shows When I click any one of them,

Re: Table view cell getting deselected in popover

2012-11-16 Thread Rick Mann
On Nov 16, 2012, at 7:06 , Fritz Anderson fri...@mac.com wrote: On 16 Nov 2012, at 3:15 AM, Rick Mann rm...@latencyzero.com wrote: I have a UITableViewCell in a UINavController in a UISplitView. When in portrait, the selected cell gets deselected at some point after dismissing the

Re: Bugs with parentViewController?

2012-11-16 Thread Fritz Anderson
On 16 Nov 2012, at 4:14 PM, Rick Mann rm...@latencyzero.com wrote: I'm finding that parentViewController is nil for all the UINavigationControllers embedded in my hierarchy (via storyboard). In my case, they're embedded in UISplitViewControllers. I wrote bugs about this, but I wanted to

Re: Bugs with parentViewController?

2012-11-16 Thread Rick Mann
On Nov 16, 2012, at 17:04 , Fritz Anderson fri...@manoverboard.org wrote: Are you sure UISplitViewController is a parent controller, and not a presenting controller? As of iOS 5, a presented controller will return nil for the parent (if there is no parent), instead of the presenting

Getting a .icns file from IconRef data

2012-11-16 Thread John Brownie
If I use TISGetInputSourceProperty to get the kTISPropertyIconImageURL property of a keyboard layout, it returns nil, so I get the kTISPropertyIconRef property, which gives me an IconRef. I can turn that into an NSImage with -initWithIconRef, but what I really want to do is to write out a file

Re: Getting a .icns file from IconRef data

2012-11-16 Thread Kyle Sluder
On Nov 16, 2012, at 6:56 PM, John Brownie john_brow...@sil.org wrote: If I use TISGetInputSourceProperty to get the kTISPropertyIconImageURL property of a keyboard layout, it returns nil, so I get the kTISPropertyIconRef property, which gives me an IconRef. I can turn that into an NSImage

Re: Getting a .icns file from IconRef data

2012-11-16 Thread Ken Thomases
On Nov 16, 2012, at 9:20 PM, Kyle Sluder wrote: On Nov 16, 2012, at 6:56 PM, John Brownie john_brow...@sil.org wrote: If I use TISGetInputSourceProperty to get the kTISPropertyIconImageURL property of a keyboard layout, it returns nil, so I get the kTISPropertyIconRef property, which

WWDC videos vs. slides?

2012-11-16 Thread Rick Mann
Hi. Does anyone know the difference between WWDC videos and slides? I can't quite figure it out, but when I was downloading on my iPad, I got audio with no video. Then I tried something else and got video. Now I'm on the Mac, and I think what's called slides is actually video. Not sure. --

Re: WWDC videos vs. slides?

2012-11-16 Thread Jonathan Hull
The video is an actual video (it plays at the top of the window, and can also be downloaded). The slides are a Keynote presentation. Thanks, Jon On Nov 16, 2012, at 8:28 PM, Rick Mann rm...@latencyzero.com wrote: Hi. Does anyone know the difference between WWDC videos and slides? I can't

Re: WWDC videos vs. slides?

2012-11-16 Thread Rick Mann
On Nov 16, 2012, at 20:43 , Jonathan Hull jh...@gbis.com wrote: The video is an actual video (it plays at the top of the window, and can also be downloaded). The slides are a Keynote presentation. Somehow I got some kind of audio-only thing. It just shows a WWDC logo, and plays the audio.

Re: WWDC videos vs. slides?

2012-11-16 Thread Jonathan Hull
Sounds like a glitch. I think that has happened to me a couple of times. Reloading the page (or possibly restarting Safari) should fix it. Worst case, you should be able to download it on your iPad and watch it in your video app. Thanks, Jon On Nov 16, 2012, at 8:54 PM, Rick Mann

Re: WWDC videos vs. slides?

2012-11-16 Thread Rick Mann
On Nov 16, 2012, at 21:08 , Jonathan Hull jh...@gbis.com wrote: Sounds like a glitch. I think that has happened to me a couple of times. Reloading the page (or possibly restarting Safari) should fix it. Worst case, you should be able to download it on your iPad and watch it in your

Re: Getting a .icns file from IconRef data

2012-11-16 Thread John Brownie
Ken Thomases wrote: On Nov 16, 2012, at 9:20 PM, Kyle Sluder wrote: Look into CGImageDestination (aka ImageIO). If that doesn't help, you might be stuck using the old Carbon resource manager functions. You don't need the Resource Manager. There's the Icon Family API for this:

Re: Bugs with parentViewController?

2012-11-16 Thread Rick Mann
On a lark, I decided to take a look at the childViewControllers in my SVC subclass (that I created to work around another issue). They were populated. So I investigated further. Seems the parentViewController is not nil any more. WTF. Updates as events warrant. -- Rick On Nov 16, 2012, at

Re: Bugs with parentViewController?

2012-11-16 Thread Rick Mann
More info: In my SVC subclass -viewDidLoad, the parent/child relationships are set up correctly. By the time -viewWillAppear in my nav controller's root VC is called (the first time the split view is displaying the popover), the SVC-UINavController parent/child relationship has been broken.

Re: Bugs with parentViewController?

2012-11-16 Thread Kyle Sluder
On Nov 16, 2012, at 9:57 PM, Rick Mann rm...@latencyzero.com wrote: More info: In my SVC subclass -viewDidLoad, the parent/child relationships are set up correctly. By the time -viewWillAppear in my nav controller's root VC is called (the first time the split view is displaying the

Re: Bugs with parentViewController?

2012-11-16 Thread Rick Mann
On Nov 16, 2012, at 22:16 , Kyle Sluder k...@ksluder.com wrote: On Nov 16, 2012, at 9:57 PM, Rick Mann rm...@latencyzero.com wrote: More info: In my SVC subclass -viewDidLoad, the parent/child relationships are set up correctly. By the time -viewWillAppear in my nav controller's root