Friday, October 10, 2014

Core Data Multithreading / Concurrency with Core Data

Basic rules are: Use one NSPersistentStoreCoordinator per program. You don't need them per thread. Create one NSManagedObjectContext per thread. Never pass an NSManagedObject on a thread to the other thread. Instead, get the object IDs via -objectID and pass it to the other thread. More rules: Make sure you save the object into the store before...

About

Powered by Blogger.