I\'m trying to use core data in a multi thread way. I simply want to show the application with the previously downloaded data while downloading new data in background. This
The Apple Concurrency with Core Data documentation is the place to start. Read it really carefully... I was bitten many times by my misunderstandings!
Basic rules are:
NSPersistentStoreCoordinator per program. You don't need them per thread.NSManagedObjectContext per thread.NSManagedObject on a thread to the other thread.-objectID and pass it to the other thread.More rules:
NSManagedObjectContext's -mergeChangesFromContextDidSaveNotification: is helpful. But let me repeat, please read the document carefully! It's really worth it!