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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to