Chapter     18

Key-Value Programming

Here you are, at the start of the final chapter of this book. Congratulations on the great job you’ve done throughout this journey! The advanced topic for this chapter is key-value programming, a set of language mechanisms and APIs that can enable you to both simplify program design and also implement more extensible and reusable code. The Objective-C key-value programming features are collectively referred to as key-value coding (KVC) and key-value observing (KVO). Key-value coding enables your code to access and manipulate an object’s properties indirectly, by name (i.e., key), rather than through accessor methods or backing instance variables. Key-value observing enables objects to be notified of changes ...

Get Pro Objective-C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.