Le 22 nov. 2010 à 00:38, Dave Zwerdling <zwerd...@gmail.com> a écrit :

> I have a fetcher which provides managed objects into the persistent store.  I 
> also have a class which needs to read the objects from another MOC because it 
> is being run in a background thread.  

You've somehow run into the same issue than me. At that point, there are, I 
think, two possibilities:

1. Use a single MOC and its provided mutex for accessing shared ressources (but 
this is strongly discouraged);

2. Create a private pool of memory in which you duplicate new objects until 
they are saved.

Vincent


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to