Determines whether the managed object can be deleted in its current state.
- iOS 3.0+
- macOS 10.4+
- tvOS 9.0+
- watchOS 2.0+
- Core Data
If the receiver cannot be deleted in its current state, upon return contains an instance of
NSErrorthat describes the problem.
YES if the receiver can be deleted in its current state, otherwise
An object cannot be deleted if it has a relationship has a “deny” delete rule and that relationship has a destination object.
NSManaged’s implementation sends the receiver’s entity description a message which performs basic checking based on the presence or absence of values.