Sets the property of the receiver specified by a given key to a given value.
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The value for the property identified by
The name of one of the receiver's properties.
key identifies a to-one relationship, relate 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, relate the objects contained in the collection to the receiver, unrelating previously related objects if there were any.
In a reference-counted environment, if the instance variable is accessed directly,
value is retained.