9 NSArrayController

Over the next few chapters, you will create RaiseMan, a full-featured application for keeping track of employees and the raise that each of them will receive this year. As you continue through the book, you will add, among other things, file saving, undo support, and printing capabilities.

RaiseMan will use a table view to display the employees in two columns, one for the employees’ names, the other for their raises. By the end of this chapter the user will be able to add and remove employees, edit their names and raises, and use the table view to sort by name and raise.

First, you will create a class to represent employees. Second, you will lay out the UI. Finally, you will use an NSArrayController and bindings ...

Get Cocoa Programming for OS X: The Big Nerd Ranch Guide 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.