Op 19 nov. 2011, om 17:00 heeft Frederic Testuz het volgende geschreven:
At the moment I cannot find an acceptable way to merge changes from the main
thread into the background thread context. Is there a solution for my use
case?
I could probably try to extend a solution with locking, but
Op 19 nov. 2011, om 05:29 heeft Quincey Morris het volgende geschreven:
2 - Through 'NSManagedObjectContextObjectsDidChangeNotification'
The objectIDs of the changed / inserted / deleted objects can be collected
from this notification and forwarded to the background thread. According to
Le 19 nov. 2011 à 00:21, patrick machielse a écrit :
I'm struggling a bit with multi-threading approaches for CoreData…
I need to _continuously_ merge changes made in the _main_ thread into a
context held by a background thread. Most (all?) discussions about
multi-threading in CoreData
I'm struggling a bit with multi-threading approaches for CoreData…
I need to _continuously_ merge changes made in the _main_ thread into a context
held by a background thread. Most (all?) discussions about multi-threading in
CoreData discuss merging changes from a _finite_ operation
On Nov 18, 2011, at 15:21 , patrick machielse wrote:
I need to _continuously_ merge changes made in the _main_ thread into a
context held by a background thread. Most (all?) discussions about
multi-threading in CoreData discuss merging changes from a _finite_ operation
in the _background_