macos:Dock-menus
出自UXGuide.net
Dock Menus
When users Control-click the Dock icon of a running application, a customizable Dock menu appears. By default, this menu displays the same items as the minimal Dock menu that is displayed when users press and hold the application’s Dock icon (for more information about different styles of Dock menus, see “The Dock”). In addition, this menu can contain application-specific items, such as the playback-focused commands in the customized iTunes Dock menu, shown in Figure 13-25.
Figure 13-25 The customized iTunes Dock menu
You can customize your application’s Dock menu by adding to the default items provided by the Dock. These additional items appear in the Dock menu only when the application is open and the user Control-clicks the Dock icon. Potential additional items include:
- Common commands to initiate actions in your application when it is not frontmost
- Commands that are applicable when there is no open document window
- Status and informational text
For example, a mail application could provide commands to initiate a new message or to check for new messages.
Any command you add to the Dock menu should also be available in your application’s pull-down menus. Application-specific items appear above the standard Dock menu items. See Dock Tile Programming Guide to learn how to customize the Dock menu for your application.