O'Reilly logo

Pro Objective-C by Keith Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required