• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSObjectController Selection Delay
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSObjectController Selection Delay (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Bison/Yacc with Objective-C ?
  • Next by Date: Cocoaheads Lake Forest (92630) meeting TOMORROW, Wed 3/10/2010 at 7 pm on Highlights of the 2010 Stanford iPhone development class
  • Previous by thread: NSObjectController Selection Delay
  • Next by thread: Core Data & Spotlight: Record-Level Indexing : Issues?
  • Index(es):
    • Date
    • Thread