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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]