views:

145

answers:

2

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

A: 

My understanding is that, during the save:, the objects in deletedObjects will be deleted. Their presence should not prevent a save.

Are you getting an error? Have you reviewed it detail? Perhaps use the method of error display from this answer to iphone Core Data Unresolved error while saving.

gerry3
A: 

First, what error are you getting?

Second, what method are you overriding? There is no -DeletedObjects: method that I am aware of.

Marcus S. Zarra