Sets the validation predicates and warnings of the receiver.
- iOS 3.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Data
An array containing the validation predicates for the receiver.
An array containing the validation warnings for the receiver.
validation arrays should contain the same number of elements, and corresponding elements should appear at the same index in each array.
Instead of implementing individual validation methods, you can use this method to provide a list of predicates that are evaluated against the managed objects and a list of corresponding error messages (which can be localized).
This method raises an exception if the receiver’s model has been used by an object graph manager.