How to remove deletedObjects from ManagedObjectContext?

Posted by Babut on Stack Overflow See other posts from Stack Overflow or by Babut
Published on 2010-02-03T11:25:41Z Indexed on 2010/04/10 7:03 UTC
Read the original article Hit count: 166

Filed under:
|
|

Hi, I have two enities: path <-->>> node. (one to many) In nodes ArrayController I override -DeleteObjects: to remove path if the last node is removed.

Everything works perfect, but it's impossible to save edited document, because nodes are left in [ManagedObjectContext deletedObjcets]. It gives error on save. How to clean them up?

Babut

© Stack Overflow or respective owner

Related posts about core-data

Related posts about objective-c