Merging changes across NSManagedObjectContexts

2009-12-30 Thread Rick Mann
In my app I have a situation where I have two (Core Data) documents open, and I need to merge all the changes made in one doc1 to the changes in doc2. I've been reading the section on Change Management in the Core Data Programming Guide, but it just talks about the caveats and gotchas, and

Re: Merging changes across NSManagedObjectContexts

2009-12-30 Thread mmalc Crawford
On Dec 30, 2009, at 12:54 pm, Rick Mann wrote: In my app I have a situation where I have two (Core Data) documents open, and I need to merge all the changes made in one doc1 to the changes in doc2. I've been reading the section on Change Management in the Core Data Programming Guide, but

Re: Merging changes across NSManagedObjectContexts

2009-12-30 Thread Rick Mann
On Dec 30, 2009, at 13:54:10, mmalc Crawford wrote: On Dec 30, 2009, at 12:54 pm, Rick Mann wrote: In my app I have a situation where I have two (Core Data) documents open, and I need to merge all the changes made in one doc1 to the changes in doc2. I've been reading the section on

Re: Merging changes across NSManagedObjectContexts

2009-12-30 Thread mmalc Crawford
On Dec 30, 2009, at 1:58 pm, Rick Mann wrote: Is that operation discussed in the docs somewhere? Yes. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/cdProgrammingGuide.html#//apple_ref/doc/uid/TP30001200 mmalc ___

Re: Merging changes across NSManagedObjectContexts

2009-12-30 Thread Mike Abdullah
On 30 Dec 2009, at 21:58, Rick Mann wrote: On Dec 30, 2009, at 13:54:10, mmalc Crawford wrote: On Dec 30, 2009, at 12:54 pm, Rick Mann wrote: In my app I have a situation where I have two (Core Data) documents open, and I need to merge all the changes made in one doc1 to the changes

Re: Merging changes across NSManagedObjectContexts

2009-12-30 Thread Rick Mann
On Dec 30, 2009, at 14:08:15, Mike Abdullah wrote: On 30 Dec 2009, at 21:58, Rick Mann wrote: On Dec 30, 2009, at 13:54:10, mmalc Crawford wrote: On Dec 30, 2009, at 12:54 pm, Rick Mann wrote: In my app I have a situation where I have two (Core Data) documents open, and I need

Re: Merging changes across NSManagedObjectContexts

2009-12-30 Thread mmalc Crawford
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

Re: Merging changes across NSManagedObjectContexts

2009-12-30 Thread mmalc Crawford
On Dec 30, 2009, at 2:08 pm, Mike Abdullah 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