Re: Core-Data : how to merge two contexts ?
Re: Core-Data : how to merge two contexts ?
- Subject: Re: Core-Data : how to merge two contexts ?
- From: mmalc Crawford <email@hidden>
- Date: Fri, 06 Nov 2009 08:16:08 -0800
On Nov 6, 2009, at 8:09 am, Eric Morand wrote:
> For example, let say that I want to be able to use a new context to deal with the creation of a new "product". I create a new editing context, insert a new product, open a new window and let the user fill the fields and click on Submit or Cancel. If the user clicks on Cancel, I release the editing context, if the user clicks on submit, I want to merge it with the 'main' context. That's where I'm stuck : how am I supposed to merge both contexts ?
>
This is illustrated in the documentation:
<http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/08_CreationSheet/creationSheet.html#//apple_ref/doc/uid/TP40001799-CH284-SW2>
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