O'Reilly logo

Objective-C Memory Management Essentials by Gibson Tang, Maxim Vasilkov

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 7. Key-value Programming Approaches

Key-value coding is a really cool function that works well with key-value observing. It allows you to code less and create very elegant solutions and code modules. There are many cases in a real application when something changes and another part of the application should be affected. The thing is that you can do anything when a property of an instance or class changes, including but not limited to checking whether its value is valid, sending a message to someone when something changes to a certain value, and so on. The options are unlimited.

We will cover the following topics in this chapter:

  • What is key-value coding?
  • The NSKeyValueCoding protocol
  • Manual subsets of the NSKeyValueCoding behavior
  • Associated ...

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