• 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: NSPersistentDocument's managedObjectContext accessed from init
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPersistentDocument's managedObjectContext accessed from init


  • Subject: Re: NSPersistentDocument's managedObjectContext accessed from init
  • From: mmalc Crawford <email@hidden>
  • Date: Wed, 24 Dec 2008 21:48:10 -0800


On Dec 24, 2008, at 8:49 PM, christophe mckeon gonzalez de leon wrote:

i was trying to set up some initial document state by fetching on
the managedObjectContext from within my NSPersistentDocument
subclass' init method, but finally realized that the context does not
seem to be fully initialized yet.

init, or initWithType: error:?
You should be able to access the context within initWithType:error:

<http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/04_Department/chapter_5_section_2.html >

mmalc

_______________________________________________

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: 
 >NSPersistentDocument's managedObjectContext accessed from init (From: "christophe mckeon gonzalez de leon" <email@hidden>)

  • Prev by Date: NSPersistentDocument's managedObjectContext accessed from init
  • Next by Date: Re: Modal Session not stopping main thread.
  • Previous by thread: NSPersistentDocument's managedObjectContext accessed from init
  • Next by thread: A Problem with HUD Panel as the Main App's Window
  • Index(es):
    • Date
    • Thread