Best approach to update managed objects from async web services responses?
I have an NSManagedObjectContext associated to main thread ( mainContext ), where I fetch all the NSManagedObject I show throughout the app. Users don't edit these objects, but I get updates from web services. I periodically perform asynchronous calls to such services, and they "tell" me which of my managed objects have to be deleted (if any), which of them have to be updated with new information (if any), and if I need to insert new objects. So, I need to firstly get the responses of all the services and then check what changes I have to make to the managed objects I already have in my