Re: Object is not reachable from this managed object context

2008-10-18 Thread Lakshmi Vyasarajan
uld be kinda weird to get "Object is not reachable from this managed object context" error if I had only one MOC. I am actually rewriting the sync portion of the app to do the save on the main thread following the strong discouragement from the docs and this forum regarding backg

Re: Object is not reachable from this managed object context

2008-10-16 Thread Hal Mueller
It looks to me like you are sharing one MOC between two threads (the web service update worker thread and the main thread). You need two MOC's. Write from the worker thread to the worker thread's MOC, then tell the main thread to refresh. Hal __

Object is not reachable from this managed object context

2008-10-16 Thread Lakshmi Vyasarajan
[Object is not reachable from this managed object context]. In the following code, saveComplete is the handler for NSManagedObjectContextDidSaveNotification. -(void)saveComplete:(NSNotification *)notification{ [self performSelectorOnMainThread:@selector(saveOnMain:) withObject:notification