Re: NSObjectController Selection Delay
Re: NSObjectController Selection Delay
- Subject: Re: NSObjectController Selection Delay
- From: Richard Somers <email@hidden>
- Date: Tue, 9 Mar 2010 22:46:52 -0700
On Mar 9, 2010, at 3:45 PM, Richard Somers wrote:
The problem is that the selection marker is delayed.
Turns out this is a well documented issue.
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/CoreData/Articles/cdTroubleshooting.html
Cannot access contents of an object controller after a nib is loaded
Problem: You want to perform an operation with the contents of an
object controller (an instance of NSObjectController,
NSArrayController, or NSTreeController) after a nib file has been
loaded, but the controller's content is nil.
Cause: The controller's fetch is executed as a delayed operation
performed after its managed object context is set (by nib loading)—the
fetch therefore happens after awakeFromNib and
windowControllerDidLoadNib:.
Remedy: You can execute the fetch "manually" with
fetchWithRequest:merge:error:—see "Core Data and Cocoa Bindings."
--Richard
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden