I use CoreData in a multi-threaded iOS application, and everything seems to work fine - unless I turn on the exception checkpoint in Xcode. Whenever I do some work with CoreData, the breakpoint stops at the save: method on the NSManagedObjectContext , but NSError is nil afterwards. I also have nothing in the log (except: Catchpoint 2 (exception thrown). ), The application does not crash ... So it's pretty hard to say what is going wrong.
The only key I have is that I have one object in updatedObjects: in my NSManagedObjectContext , but there is nothing wrong with it.
My question is very similar to https://stackoverflow.com/a/3129609/129231 ... but the only answer does not help me; I am pretty sure that everything is covered there.
What could be wrong here? Or are there other options for getting error information?
Thank you very much!
EDIT : showing the code is pretty hard. I load objects using objectID, edit and save them in the context assigned to the current thread. I already checked - the context is always correct for the current thread; each thread has its own context, which should not be a problem. It would even be helpful if someone could tell me how to get more information from this error / exception - or if I still need to do this. It seems to me that the exception falls into the "save" method, so maybe this is the "normal" behavior?
objective-c core-data
swalkner Dec 01 '11 at 7:01 2011-12-01 07:01
source share