Question about multiple MOCs on shared PSC
Question about multiple MOCs on shared PSC
- Subject: Question about multiple MOCs on shared PSC
- From: Rick Mann <email@hidden>
- Date: Mon, 4 Jan 2010 20:12:48 -0800
So, I thought I could create a new NSManagedObjectContext given the NSPersistentStoreCoordinator of a different MOC, and that it would be a completely blank context. But it turns out fetches for objects will fetch anything out of the store(s). This makes sense, but isn't what I wanted. I really wanted to have to create all new objects in the new MOC, and then add those to the store, and otherwise treat the MOC as if it were a blank slate (i.e., do fetches, etc and not have any problems).
So, it looks like I need to create a new standalone MOC, and then manually integrate the changes back into the old one. Before I proceed with that, can anyone tell me if that's not the case?
TIA!
Rick
P.S. It may not be as bad as all that; I may be able to do what I need to with no Fetches done in the MOC.
--
Rick
_______________________________________________
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