Running a Popover with Bindings
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 ...
Get Xcode 5 Start to Finish: iOS and OS X Development 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.