Sets the specified property of the managed object to the specified value.
- iOS 3.0+
- macOS 10.4+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
- Core Data
The new value for the property specified by
The name of one of the receiver's properties.
key is not a property defined by the model, the method raises an exception. If
key identifies a to-one relationship, relates the object specified by
value to the receiver, unrelating the previously related object if there was one. Given a collection object and a key that identifies a to-many relationship, relates the objects contained in the collection to the receiver, unrelating previously related objects if there were any.
This method is overridden by
NSManaged to access the managed object’s generic dictionary storage unless the receiver’s class explicitly provides key-value coding compliant accessor methods for