
2 78 9 Chapter 12: The Tools of Mac OS X: Interface Builder
can choose that action. When this actually occurs, Cocoa will
search the responder chain for the first responder that re-
sponds to deleteEntry (i.e., that can process it). It will find
that object in the DiaryDocument object that is in the respond-
er chain. (If you have several documents open, there may be
several objects lying around, but only one will be in the re-
sponder chain~the one associated with the active window.)
In this way, the command is sent appropriately. You need to
add actions to First Responder in the main nib for any menu
commands that act on objects ...