This demo app was used in my 2013 That Conference talk entitled Going Down the Core Data Rabbit Hole. This app is based upon Apple's default Xcode shell Master-Detail app template with Core Data turned on.
I've added a number of things to the code to support multithreading:
A public method "newManagedObjectContext" to create a child context for use in a background thread
Listen to NSManagedObjectContextDidSaveNotification and call mergeChanges (custom method) to merge them into the main thread context.
Added a new method "insertNewObjectBackground" to do the data insert on a background thread using Grand Central Dispatch.
Please do NOT hesitate to ask questions!
- http://twitter.com/astralbodies
- http://astralbodies.net
- http://github.com/astralbodies
- astralbodies at Gmail
Schedule is available under the MIT license. See the LICENSE file for more info.