Re: Handling NSManagedObjectContextDidSaveNotification from different threads
Re: Handling NSManagedObjectContextDidSaveNotification from different threads
- Subject: Re: Handling NSManagedObjectContextDidSaveNotification from different threads
- From: Rick Mann <email@hidden>
- Date: Wed, 11 Aug 2010 13:22:40 -0700
Thanks much for that!
On Aug 11, 2010, at 13:16:28, Kyle Sluder wrote:
> On Wed, Aug 11, 2010 at 1:07 PM, Rick Mann <email@hidden> wrote:
>> We did, as far as anyone here knows. I just find it interesting that the preferred approach, to use multiple MOCs and one PSC, creates a situation in which a MOC is likely to be manipulated by multiple threads: when handling the didSave notification.
>
> This question comes up on the list periodically.
> -mergeChangesFromContextDidSaveNotification: is specifically designed
> to handle multiple threads correctly. I filed rdar://problem/6933634
> last May about this being poorly documented in response to this
> thread, which contains a response from Ben Trumbull:
> http://www.cocoabuilder.com/archive/message/cocoa/2009/5/29/237809
>
> --Kyle Sluder
_______________________________________________
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