Re: Core Data threading fun
Re: Core Data threading fun
- Subject: Re: Core Data threading fun
- From: Luke Evans <email@hidden>
- Date: Mon, 21 Sep 2009 14:30:57 -0700
Thanks again Kyle.
Great that -mergeChangesFromContextDidSaveNotification: does the Right
Thing vis-a-vis working across threads. Would be a little awkward to
keep it happy otherwise. Kudos to the Core Data folks (especially
since the more I learn about Core Data the more I realise just what a
complex beast it is!).
On 2009-09-21, at 1:21 PM, Kyle Sluder wrote:
On Mon, Sep 21, 2009 at 11:43 AM, Luke Evans <email@hidden>
wrote:
As the NSManagedObjectContextDidSaveNotification will be posted on
the main
thread, is it safe to do a -
mergeChangesFromContextDidSaveNotification: on
the main thread for any given MOC?
This led to confusion a few months ago. I filed a documentation bug
about it, which is still open (rdar://problem/6933634).
Ben Trumbull answered in
http://www.cocoabuilder.com/archive/message/cocoa/2009/5/29/237809.
Short answer: the objects are thread-safe.
--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