• 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: Handling NSManagedObjectContextDidSaveNotification from different threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling NSManagedObjectContextDidSaveNotification from different threads


  • Subject: Re: Handling NSManagedObjectContextDidSaveNotification from different threads
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 11 Aug 2010 13:16:28 -0700

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

  • Follow-Ups:
    • Re: Handling NSManagedObjectContextDidSaveNotification from different threads
      • From: Rick Mann <email@hidden>
    • Re: Handling NSManagedObjectContextDidSaveNotification from different threads
      • From: Rick Mann <email@hidden>
References: 
 >Handling NSManagedObjectContextDidSaveNotification from different threads (From: Rick Mann <email@hidden>)
 >Re: Handling NSManagedObjectContextDidSaveNotification from different threads (From: Keary Suska <email@hidden>)
 >Re: Handling NSManagedObjectContextDidSaveNotification from different threads (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Handling NSManagedObjectContextDidSaveNotification from different threads
  • Next by Date: Re: Handling NSManagedObjectContextDidSaveNotification from different threads
  • Previous by thread: Re: Handling NSManagedObjectContextDidSaveNotification from different threads
  • Next by thread: Re: Handling NSManagedObjectContextDidSaveNotification from different threads
  • Index(es):
    • Date
    • Thread