Guides and Sample Code

Developer

macOS Human Interface Guidelines

iBooks

Dock Menus

When users Control-click a running app’s Dock icon, a customizable Dock menu appears. By default, this menu displays the same items as the minimal Dock menu that’s displayed when users press and hold the Dock icon. For more information about different styles of Dock menus, see The Dock. In addition, this menu can contain app-specific items, such as the playback-focused commands in the customized iTunes Dock menu you see here. (Note that the Dock and Dock menus use the current appearance that the user specifies in General preferences.)

Light menu bar and Dock appearance

image: ../Art/dock_menu_light_2x.png

Dark menu bar and Dock appearance

image: ../Art/dock_menu_dark_2x.png

The custom items that you add appear in the Dock menu only when your app is open and the user Control-clicks the Dock icon. You might consider adding items such as:

  • Common commands to initiate actions in your app when it is not frontmost

  • Commands that are applicable when there is no open document window

  • Status and informational text

For example, Mail provides commands to compose a message and check for new messages. (To learn how to customize the Dock menu in code, see Dock Tile Programming Guide.)

image: ../Art/custom_dock_menu_2x.png

Be sure that all Dock menu commands are also available in your app’s menus. Users might not know about the Dock menu, so it should not be the only way to do something.

Place your app-specific items above the standard Dock menu items. Users should always know where to look for the system-provided Dock menu commands.