Key-Value Observing

E427885

Key-Value Observing is an Objective-C and Swift mechanism that lets objects be notified and react when specific properties of other objects change.

All labels observed (5)

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf Objective-C feature
Swift feature
observer pattern implementation
alsoKnownAs KVO
linked to: Key-Value Observing
AppleDocumentationTopic Key-Value Observing Programming Guide
linked to: Key-Value Observing
basedOn Key-Value Coding
canObserve Objective-C properties
Swift properties exposed to Objective-C
changeType NSKeyValueChange.insertion
NSKeyValueChange.removal
NSKeyValueChange.replacement
NSKeyValueChange.setting
collectionProxyClass NSKeyValueArray
NSKeyValueOrderedSet
NSKeyValueSet
linked to: NSMutableSet
commonIssue crashes from dangling observers
over-observation of frequently changing properties
coreConcept change dictionary
key path
observation context
observed object
observer object
definedInFramework Foundation framework
improvedIn Swift block-based API
introducedIn Cocoa
notificationMethod observeValueForKeyPath:ofObject:change:context:
platform iOS
macOS
tvOS
watchOS
primaryPurpose notify observers of value changes
observe property changes
relatedConcept Combine framework
linked to: Combine

NotificationCenter
delegation pattern
requires KVC-compliant properties
requiresCareWith observer lifetime management
supportsCollectionObserving to-many relationships
supportsFeature automatic notifications for property changes
manual notifications for property changes
SwiftAPI KeyPath-based observing
NSKeyValueObservation
linked to: Key-Value Observing
typicalUseCase data binding
model-view synchronization
reactive UI updates
usedInLanguage Objective-C
Swift
usesMechanism Objective-C runtime

How these facts were elicited

Referenced by (5)

Full triples — surface form annotated when it differs from this entity's canonical label.

Combine integratesWith Key-Value Observing
Key-Value Observing alsoKnownAs KVO
linked to: Key-Value Observing
Key-Value Observing SwiftAPI NSKeyValueObservation
linked to: Key-Value Observing
Key-Value Observing AppleDocumentationTopic Key-Value Observing Programming Guide
linked to: Key-Value Observing
NSNotification relatedConcept KVO (Key-Value Observing)
linked to: Key-Value Observing