Re: Weird Core Data crash
Re: Weird Core Data crash
- Subject: Re: Weird Core Data crash
- From: Fritz Anderson <email@hidden>
- Date: Tue, 29 Nov 2011 07:51:32 -0600
On 29 Nov 2011, at 7:21 AM, Andrew Kinnie wrote:
> This method may be called from the main thread or from a background thread, but is always called using performSelectorInBackground.
It's not enough that you divert the call to _a_ background thread. You must send it to _the_ background thread that owns the managed-object context.
If necessary (you can't exchange the data between threads through non-CD immutable types), each thread that does business with your persistent store should have its own MOC, coordinate its content with NSManagedObjectContextDidSaveNotification, and query/update the store only through its MOC.
— F
_______________________________________________
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