Summary NSKeyValueObserving.

Morgan Kang
Jul 3, 2021

This summary is for studying iOS.

And this article refer to ‘Apple Developer Documentation’

NSKeyValueObserving is an informal protocol that objects to be adopt to be notified of changes to the specified properties of other objects.

Developers can observe any object properties and even simple attributes.

Any object properties and simple attributes can make relationships like to-one or to-many.

If Observers are do the relationship that to-many, the relationships are informed of the type of change made which objects are involved in the change.

‘NSObject’ provides an implementation that the ‘NSKeyValueObserving’ protocol which is provides an automatic observing capability for all objects.

And further refine notifications by disabling automatic observer notifications and implementing manual notifications using the methods in ‘NSKeyValueObserving protocol’.

--

--