Summary of Key-value coding (part 1).

Morgan Kang
1 min readJul 7, 2021

Before reading.

This Summary is just write down when I study iOS.

So, it’s not good enough to read, plz understand about that.

Intro

Key-value coding is a mechanism for indirectly accessing which is object’s attributes and relationships that using string identifiers.

Key-value coding is underpins or related(fundamental concept) to several mechanisms and technologies special to Cocoa programming which Core Data, AppleScript-ability, the bindings technology, and the language feature of declared properties.

Key-value coding is a mechanism allow to the ‘NSKeyValueConding’ informal protocol that objcets adopt to provide indirect access to their properties.

When an object is key-value coding compliant, its properties are addressable via string parameters through a concise, uniform messaging interface.

This indirect access mechanism supplements the direct access afforded by instance variables and their associated accessor methods.

Key-value coding compliant object provides a simple messaging interface that is consistent across all of its properties.

Key-value coding can help to simplify your code in some cases.

--

--