Skip to Main Content
Xcode 5 Start to Finish: iOS and OS X Development
book

Xcode 5 Start to Finish: iOS and OS X Development

by Fritz Anderson
May 2014
Intermediate to advanced content levelIntermediate to advanced
624 pages
19h 43m
English
Addison-Wesley Professional
Content preview from Xcode 5 Start to Finish: iOS and OS X Development

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Fritz Anderson
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Stefan Kaczmarek, Brad Lees, Gary Bennett, Mitch Fisher

Publisher Resources

ISBN: 9780133751031Purchase book