• 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: NSManagedObjectContextDidSaveNotification across MOCs on two threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSManagedObjectContextDidSaveNotification across MOCs on two threads


  • Subject: Re: NSManagedObjectContextDidSaveNotification across MOCs on two threads
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 15 Sep 2010 09:01:14 -0700

On 2010 Sep 15, at 07:02, Roland King wrote:

> Checking the documentation for NSNotificationCenter however I see that the notifications are processed in the thread in which they were sent, that of course will be my indexing thread and that's exactly what I was trying to avoid, updating contexts across threads. What's the best way to deal with this?

Not sure what's the best way, but I've used one of the performSelectorOnMainThread… methods to make a notification get posted on the main thread.

_______________________________________________

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: NSManagedObjectContextDidSaveNotification across MOCs on two threads
      • From: Roland King <email@hidden>
References: 
 >NSManagedObjectContextDidSaveNotification across MOCs on two threads (From: Roland King <email@hidden>)

  • Prev by Date: Re: NSImageViews, Block Animation and Frame by Frame Image Swapping
  • Next by Date: Re: Apple Sample Code GLES2Sample problems
  • Previous by thread: NSManagedObjectContextDidSaveNotification across MOCs on two threads
  • Next by thread: Re: NSManagedObjectContextDidSaveNotification across MOCs on two threads
  • Index(es):
    • Date
    • Thread