Determines whether the managed object can be inserted in its current state.
- iOS 3.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Data
If the receiver cannot be inserted in its current state, upon return contains an instance of
NSErrorthat describes the problem.
YES if the receiver can be inserted in its current state, otherwise
Subclasses should invoke super’s implementation before performing their own validation, and should combine any error returned by super’s implementation with their own (see Managed Object Validation).