• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data threading fun
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Core Data threading fun (From: Luke Evans <email@hidden>)
 >Re: Core Data threading fun (From: Kyle Sluder <email@hidden>)
 >Re: Core Data threading fun (From: Luke Evans <email@hidden>)
 >Re: Core Data threading fun (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Problem with fontDescriptorWithFontAttributes:
  • Next by Date: Re: Architecture for concurrent network client
  • Previous by thread: Re: Core Data threading fun
  • Next by thread: re: Core Data threading fun
  • Index(es):
    • Date
    • Thread