AN0,
There is an NSManagedObject method only for performing temporary removal functions: -prepareForDeletion.
Its documentation states: "You can implement this method to perform any operations required before deleting the object, for example, user distribution before the relationship is demolished, or reconfiguring the objects using key monitoring."
You can also look at using: -willTurnIntoFault and -didTurnIntoFault. But I think you will be happier to use -prepareForDeletion.
Andrew
PS This method is described in the class reference. I respectfully suggest that you save time by reading the documentation.
adonoho
source share