Skip navigation.
 
mlcore data, refreshObject, multiple threads
FROM : Chris Idou
DATE : Fri Dec 05 02:55:24 2008

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

Related mailsAuthorDate
mlcore data, refreshObject, multiple threads Chris Idou Dec 5, 02:55
mlRe: core data, refreshObject, multiple threads Steve Steinitz Dec 6, 01:04
mlRe: core data, refreshObject, multiple threads Chris Idou Dec 7, 12:22
mlRe: core data, refreshObject, multiple threads John Clayton Dec 7, 14:45
mlRe: core data, refreshObject, multiple threads Chris Idou Dec 7, 23:47
mlRe: core data, refreshObject, multiple threads Steve Steinitz Dec 8, 00:05