NSKey (KVO) informal protocol defines a mechanism that allows objects to be notified of changes to the specified properties of other objects.
- iOS 2.0+
- macOS 10.3+
- tvOS 9.0+
- watchOS 2.0+
You can observe any object properties including simple attributes, to-one relationships, and to-many relationships. Observers of to-many relationships are informed of the type of change made — as well as which objects are involved in the change.
NSObject provides an implementation of the
NSKey protocol that provides an automatic observing capability for all objects. You can further refine notifications by disabling automatic observer notifications and implementing manual notifications using the methods in this protocol.