April 2015
Intermediate to advanced
556 pages
17h 47m
English
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
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 ...
Read now
Unlock full access