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