re: Code Data: Re-inserting deleted objects

2008-10-06 Thread Ben Trumbull
Chaitanya, What is the best way to re-insert a deleted object back in to the managed object context? -insertObject: will reinsert a deleted object. -insertObject and - deleteObject will cancel each other out. Typically, one wouldn't validateForInsert until after reinserting the object,

Code Data: Re-inserting deleted objects

2008-10-02 Thread chaitanya pandit
Hi List, What is the best way to re-insert a deleted object back in to the managed object context? At present i'm trying to this: if ([objectToReinstate validateForInsert:error]) [[self managedObjectContext] insertObject:objectToReinstate]; But i am having problems with objects having