Contents

validateForDelete()

Determines whether the managed object can be deleted in its current state.

Declaration

func validateForDelete() throws

Discussion

An object cannot be deleted if it has a relationship has a “deny” delete rule and that relationship has a destination object.

NSManagedObject‘s implementation sends the receiver’s entity description a message which performs basic checking based on the presence or absence of values.

See Also

Managing Data Validation