September 2002
Intermediate to advanced
1272 pages
31h 12m
English
In addition to an application’s main menu, Cocoa supports contextual menus. A contextual menu is a menu that pops up when the user Control-clicks on a user interface object. The menu changes depending on the item clicked. The idea is to offer a menu of commands that are available for that particular user interface item. For example, clicking the document area of the TextEdit application opens a menu similar to the one shown in Figure 16.3.

Contextual menus are defined on a per-view basis. There are three places that a contextual menu can be defined.
With the lowest priority, is the ...
Read now
Unlock full access