- observeValueForKeyPath:ofObject:change:context:
Informs the observing object when the value at the specified key path relative to the observed object has changed.
Technology
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 NSKeyValueObserving 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.
- observeValueForKeyPath:ofObject:change:context:
- addObserver:forKeyPath:options:context:
- removeObserver:forKeyPath:
- removeObserver:forKeyPath:context:
- willChangeValueForKey:
- didChangeValueForKey:
- willChange:valuesAtIndexes:forKey:
- didChange:valuesAtIndexes:forKey:
- willChangeValueForKey:withSetMutation:usingObjects:
- didChangeValueForKey:withSetMutation:usingObjects:
+ automaticallyNotifiesObserversForKey:
+ keyPathsForValuesAffectingValueForKey:
+ setKeys:triggerChangeNotificationsForDependentKey:
observationInfo
NSKeyValueChange
NSKeyValueObservingOptions
NSKeyValueChangeKey
NSKeyValueSetMutationKind