Core Data passing context between methods on secondary threads

Posted by JK on Stack Overflow See other posts from Stack Overflow or by JK
Published on 2010-04-15T21:02:36Z Indexed on 2010/04/15 21:03 UTC
Read the original article Hit count: 469

Filed under:
|
|
|

My app spawns a secondary thread for some core data store maintenance. In the secondary thread, I set up a context which I then pass to other methods e.g. [self editEntriesInContext:context]. However, this causes objects fetched from the context to become invalidated in editEntries...

Why does this occur? I thought the only requirements were for the secondary thread to have its own context and managed objects, which I adhere to.

(Note: The context is properly retained)

© Stack Overflow or respective owner

Related posts about core

Related posts about core-data