Re: refreshObject throws for object no longer in database

2009-05-17 Thread Steve Steinitz
Hi For the archives, I'll comment on my own question. On 17/5/09, Steve Steinitz wrote: I've added code to refresh objects from the database store ... It works well except when another machine has deleted an object. I've tried several ways of overcoming the NSObjectInaccessibleException I

refreshObject throws for object no longer in database

2009-05-17 Thread Steve Steinitz
Hello, I'm using Core Data for a multi-user point-of-sale system. To overcome occasional exceptions on save, I've added code to refresh objects from the database store (using a sort of souped up [context refreshObject:]) periodically during idle and, if needed, just before key operations lik