O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

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

Binding the Table View’s Content to the Array Controller

In Chapter 7, you implemented a data source for the table view. The table view asked the data source for the number of rows, then for the data for each cell. As we mentioned earlier in this chapter, none of that code is necessary with bindings and array controllers. When a table view has its Content binding set, it does not ask the data source for cell data.

Select the table view. Remember, selecting the table view can be tricky; it is easy to select the scroll view or clip view that contains the table view rather than the table view itself. Use the document outline or the jump bar to make sure you have selected the table view and not one of its superviews.

With the table view ...

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