Re: NSManagedObjectContextDidSaveNotification across MOCs on two threads
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