O'Reilly logo

Xcode 5 Start to Finish: iOS and OS X Development by Fritz Anderson

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

19. Bindings: Wiring an OS X Application

If you have another look at Figure 18.1, you’ll see that even in the abbreviated form Mac Passer Rating will take, there will be more than 20 pieces of information distributed across 4 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 subtle when you first encounter them, but once you master them, they can cut your coding burden by an order of magnitude.

Note

Experienced Mac programmers—and Apple itself—will ...

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