Information Technology Reference
In-Depth Information
chain, define them as an IBAction and add them to a nib object. They appear in the responder list automatically,
and you can link to them in the usual way.
FIGURE 8.2
Viewing the First Responder actions in an iOS application
CAUTION
Before this works correctly, you need to let IB know that you're using a subclassed version of the window object.
This assignment process is described later in this chapter.
For comparison, Figure 8.3 shows the First Responder list created by the standard OS X application template.
iOS includes a handful of standard responder methods. OS X supports nearly 200.
In the application template, many are pre-linked to menu items. None of the methods are implemented, not
even with stubs. But you can easily add code to your own subclasses to make them “live.”
NOTE
An OS X application includes an extra placeholder object called Application, which stands in for the main applica-
tion object. It includes a selection of predefined actions, most of which aren't implemented. For information
about handling these and other related application events, see the companion Cocoa Developer Reference title.
Search WWH ::




Custom Search