May 2014
Intermediate to advanced
624 pages
19h 43m
English
The plan from Figure 18.1 shows a popover window attached to a row in the Game table. I’m going to run through this quickly—mostly it involves binding work that you know how to do by now—but there are a couple of points to take note of: Setting an IBAction to detect a click on the table, and using NSObjectController to mediate single objects.
An NSTableView is a very complex apparatus, but it descends from NSControl, which is very simple. Like a menu item, a control has a target (where to send commands) and an action (the name of the method that handles the command). Different controls trigger their actions on different events—text fields send their action messages when you finish editing them—but tables, like ...