Sub topic 8
Anatomy of the Dock
This chapter assumes you can open System Settings and Finder and have used a Mac with a mouse or trackpad. It describes what the Dock contains, how it divides into regions, and what each region does. Later chapters cover customizing it.
What the Dock is
The Dock is a strip of icons that sits at the bottom of the screen by default. It does three jobs:
- It launches apps and opens files and folders you use often.
- It shows which apps are running.
- It holds minimized windows and the Trash.
The Dock is managed by a system process also named Dock. Because the Dock is a separate process from the apps it displays, you can restart it without quitting your apps. The last chapter of this tutorial uses that fact.
The three regions
The Dock has three regions, separated by thin vertical lines (or horizontal lines if the Dock is on a side edge).
The table below summarizes each region.
| Region | Location (bottom Dock) | Contents |
|---|---|---|
| Apps | Left of the first divider | Finder, then apps you pinned, plus any running app you have not pinned |
| Recent apps | Right of the first divider, when enabled | Up to three recently used apps that are not already in the Dock |
| Folders and windows | Right of the last divider | Folders, files, minimized windows, and the Trash |
The app region
Finder is always the leftmost icon. You cannot remove it. Next to it are the apps you have pinned. A pinned app stays in the Dock when you quit it, so you can launch it again with one click.
When you open an app that is not pinned, its icon appears in this region temporarily. It disappears when you quit the app. To keep it, Control-click or right-click the icon, then choose Options > Keep in Dock.
The recent apps section
If Show suggested and recent apps in Dock is turned on in System Settings, a section appears after the first divider. It shows up to three apps you used recently that are not already pinned. These entries come and go on their own, so do not treat them as stable. Turning the setting off removes the section and its divider.
The folders and windows region
The region at the right end holds three kinds of item:
- Folders and files you added, such as Downloads.
- Windows you minimized, each shown as a small thumbnail of the window.
- The Trash, which is always the rightmost item.
This region also has a fixed order. Minimized windows appear between your folders and the Trash. Apps never go in this region, and folders and files never go in the app region. If you drag one into the wrong side, the Dock will not accept it there.
Reading what the Dock tells you
The Dock also reports state. Three visual cues are worth learning now. Chapter "Dock context menus, running indicators, and badges" covers them fully.
- Running indicator: a small dot beneath an icon means the app is running. The setting Show indicators for open applications controls this.
- Bouncing icon: an app bounces when it is launching or wants your attention.
- Badge: a red circle with a number on an icon, such as unread mail, means the app has pending items.
Moving items in the Dock
You change the Dock by direct manipulation:
- To rearrange, drag an icon left or right and drop it in the new position. Other icons move aside.
- To add an app, drag it from the Applications folder into the app region.
- To add a folder, drag it from Finder to the right of the divider.
- To remove an item, drag it out of the Dock and release it over the desktop. The icon disappears with a puff of smoke.
Removing an icon does not delete the app or folder. It only removes the shortcut. Finder and the Trash cannot be removed this way. Dragging the Trash out of the Dock has no effect.
How the Dock resizes itself
The Dock changes its icon size as you add items so that everything fits on one screen edge. If you fill it with many icons, each icon shrinks. You can set a preferred size with the Size slider in System Settings > Desktop & Dock, but the Dock will still shrink below that size when it runs out of room.
You can also resize the Dock by dragging the divider. Place the pointer on a divider until it changes shape, then drag up or down. This is the same as moving the Size slider.
The Magnification option enlarges icons under the pointer. It is a visual aid only and does not change which icons are present.
Common errors and edge cases
- An app appears twice. This happens when the same app is pinned from two different locations, for example a copy in Downloads and the one in Applications. Dock matches apps by file location. Remove the stale one.
- An icon shows a question mark. The pinned item was moved or deleted, so the Dock cannot find it. Remove the icon and add the item again from its new location.
- A folder icon in the Dock opens in the wrong style. Folders open as a fan, a grid, or a list. Control-click the folder and choose Display as and View content as to change this. The folder chapter covers these options.
- The Dock is missing. It is probably set to hide automatically. Move the pointer to the edge of the screen where the Dock should be. If it still does not appear, see the troubleshooting chapter.
- The Dock is on the wrong edge. The position can be bottom, left, or right. On a side edge the dividers become horizontal lines, and the regions run top to bottom instead of left to right.
Checking the Dock's state
Settings in Desktop & Dock are stored in a preferences domain called com.apple.dock. You can read one value from Terminal without changing anything:
defaults read com.apple.dock autohideThe command prints 1 if the Dock hides automatically. If the key was never set, it prints an error saying the pair does not exist. That error means the Dock is using its default behavior, which is to stay visible. A later chapter explains how to change these values.
Summary table of Dock controls
| What you want | Where to do it |
|---|---|
| Change size, position, hiding | System Settings > Desktop & Dock |
| Pin or unpin an app | Control-click the icon > Options |
| Reorder items | Drag the icon |
| Show or hide recent apps | System Settings > Desktop & Dock |
| Show running indicators | System Settings > Desktop & Dock |
Exercise
You pinned an app, then quit it. A different app that you never pinned is running and shows in the Dock. When you quit that second app, what happens to each icon, and which setting or action would keep the second app?
Show answer
The pinned app's icon stays in the Dock after you quit it, with no running indicator dot. The unpinned app's icon disappears when you quit it. To keep the second app, Control-click its icon while it is running and choose Options > Keep in Dock.
Exercise
You run defaults read com.apple.dock autohide and Terminal prints an error saying the domain/default pair does not exist. Is the Dock broken? What is the Dock's behavior?
Show answer
No. The error means the autohide key has never been set, so the Dock uses its default and stays visible. Nothing is broken.