Information Technology Reference
In-Depth Information
This can be a useful way to leapfrog across objects in the responder hierarchy. For example, if you want to cre-
ate a button that sends a message to a window rather than a view controller, subclass the window and add a re-
sponder method to it.
NOTE
There's only one First Responder item in an application. Although it appears in every nib, it's the same item. (File's
Owner is different for every nib.)
CAUTION
Objects with custom methods must be plugged into the responder chain correctly—otherwise messages disappear
and are ignored. It can take longer to add the code that ensures an object supports first responder status correctly
than to create the responder methods.
FIGURE 8.20
Adding a custom action to First Responder
Converting iPhone projects to the iPad
Search WWH ::




Custom Search