Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument
Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument
- Subject: Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument
- From: vincent habchi <email@hidden>
- Date: Sun, 21 Nov 2010 20:37:23 +0100
Le 21 nov. 2010 à 20:09, Dave Zwerdling a écrit :
> The issue lies in this: I have a background-thread reader of entities. Because it is multithreaded, it uses a separate MOC for the entities to be read. These MOCs have their persistent store coordinator the same as the document. The background thread always returns faulted objects until the persistent document is saved.
If this is your problem, this is normal. Until they are saved to the persistent document, newly created objects are local to their MOC and cannot be accessed elsewhere: upon creation, they are assigned temporary IDs.
Vincent_______________________________________________
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