Hour 9. Creating Data-Bound Interfaces

What you’ll learn in this hour:

The Model-View-Controller Pattern

Introduction to Cocoa Bindings

• Building a Data-Bound Interface

How Bindings Work Under the Hood

In the previous hour you learned about outlets, actions, and connections, and the power they give us to connect our code to our user interfaces. In this hour, we’re going to learn how to take that knowledge a step further and create automatic bindings between code objects and controls.

This hour covers how to bind individual properties of a control to values exposed by objects such as controllers, but before you learn how to bind to a controller, we’ll explore one of the guiding principles of Cocoa’s architecture: the Model-View-Controller ...

Get Sams Teach Yourself Mac OS® X Lion™ App Development in 24 Hours 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.