Chapter 18. Wiring a Mac Application with Bindings

In This Chapter

• Understanding what bindings are

• Autoresizing

• Creating object controllers

• Wiring tables with bindings

• Using number and date formatters

If you have another look at Figure 17.1, you’ll see that even in the abbreviated form Mac Passer Rating can take, there can be more than 20 pieces of information, distributed across four displays, to be filled in, edited (in some cases), and coordinated across updates. This is going to involve some tedious, repetitive code and a lot of communications infrastructure through the network of objects, isn’t it?

No. AppKit (the Mac-specific part of Cocoa) offers a facility called bindings, supplemented by NSController classes, which are a ...

Get Xcode® 4 Unleashed, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.