Chapter 12: Key-Value Coding (KVC)

Chapter 12: Key-Value Coding (KVC) of my free eBook, Beginning Objective-C Programming.

This involves using a set of NSObject methods that can set or get property values based on their string representation. So, if a class has a name property you can get or set that value by using the dot notation in code or you can query the object with the string name to get or set the value.

This is an alternative to the typical way of working with properties that you can use in situations where you may not know the name of the property you will need at the time of writing the code. You may also use KVC to query arrays of objects or even arrays that are properties of an object.

For more with KVC and How to use KVC. http://howtomakeiphoneapps.com/objective-c-programming-key-value-coding-kvc/1505/

No comments yet.

Leave a Reply