core data, refreshObject, multiple threads
core data, refreshObject, multiple threads
- Subject: core data, refreshObject, multiple threads
- From: Chris Idou <email@hidden>
- Date: Thu, 4 Dec 2008 17:55:24 -0800 (PST)
I've got a main thread that handles a gui, and a worker thread with its own persistentStoreCoordinator and managedObjectContext. The gui notifies the worker thread of a change, passing it an objectID, and the worker thread gets the object, and other objects it is connected to, and calls [managedObjectContext refreshObject: on them.
But they don't seem to get an updated object. I'm using the XML store. The store is saved, I've checked that the new values are in the XML. But refresh doesn't seem to update anything. Is there any trick to it?
Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden