OK to share managed object model across MOCs?
OK to share managed object model across MOCs?
- Subject: OK to share managed object model across MOCs?
- From: Marc Respass <email@hidden>
- Date: Tue, 08 Feb 2011 09:42:23 -0500
Hi all,
I have an NSDocument based application and each document has its own core data stack (NSPersistentDocument is inappropriate for my application). Each document gets its own model, store coordinator, and object context. It occurred to me that the model is the same model for each document so I could turn it into a static local that is loaded once and used by each document rather than an instance variable created each time. It works just fine but I'd like to get some other opinions. Anyone see anything wrong with that?
Thanks a lot
Marc
_______________________________________________
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