Re: NSPersistentDocument's managedObjectContext accessed from init
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