NSPersistentDocument's managedObjectContext accessed from init
NSPersistentDocument's managedObjectContext accessed from init
- Subject: NSPersistentDocument's managedObjectContext accessed from init
- From: "christophe mckeon gonzalez de leon" <email@hidden>
- Date: Wed, 24 Dec 2008 20:49:51 -0800
hi,
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. so i am doing it from within
makeWindowControllers which seems only to be called at document
launch (and it works).
note that my app is multi-document and multi-window per document.
is there a standard/better way of approaching this problem?
thanks for any tips,
_c
_______________________________________________
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