Re: Merging changes across NSManagedObjectContexts
Re: Merging changes across NSManagedObjectContexts
- Subject: Re: Merging changes across NSManagedObjectContexts
- From: mmalc Crawford <email@hidden>
- Date: Wed, 30 Dec 2009 18:00:35 -0800
On Dec 30, 2009, at 2:24 pm, Rick Mann wrote:
>> It's pretty much the same as any other operation on with a MOC. You cannot copy or move a managed object from one MOC to another in a simple fashion. Instead, you have got to create new, corresponding objects in the second MOC, and then (if needed) delete the old objects from the first MOC.
> Really? There's no way to associate the MOC with the persistent store of an existing doc, and then do a save operation, and have the objects transferred automatically?
>
No, really, there isn't. Really.
> Because it seems like Core Data supports creating a second MOC on an existing persistent store and then saving.
>
You're describing two completely different operations.
Copying a record from one store to another is not the same as having representations of a given record in two contexts.
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