I have a core data application based on the default xcode template, I have the main UI which is used for viewing the data and then I have a background thread which is downloading/inserting/editing data.
I figured when the application launches I can create two NSManagedObjectContext, one which the applications reads from and the other in the background thread will be written to, then when it has finished writing it will call performSelectorOnMainThread to sync the two NSManagedObjectContext objects.
I am fairly new to cocoa and wondered if anyone could confirm that this should work and does anyone know of an example or discussion about this as I cannot get the syncing to work correctly.