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

How Sorting Works in RaiseMan

Often, a single sort descriptor will not completely sort a list of objects. To see this in action, run RaiseMan and add three employees. Give them all different names. Give one of them a larger raise (20%, say) and leave the other raises alone. You should have a setup like Figure 9.23.

Figure 9.23  Three employees added in RaiseMan

Three employees added in RaiseMan

Click on the column header of the Raise column. This will add a sort descriptor to the table view’s sortDescriptors array. Bindings will keep the array controller’s sortDescriptors in sync, so its arrangedObjects will be rearranged. The order of the rows in the table ...

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