Sub topic 2
What a Space is
This chapter assumes you know how to use windows, the Dock, and the menu bar on a Mac. It also assumes you can open System Settings and use a trackpad or mouse with the modifier keys Control, Option, Command, and Fn. By the end you should be able to explain what a Space is and how Spaces relate to desktops and full-screen apps.
The working model
A Space is a separate workspace on your Mac. Each Space holds its own set of windows. Only one Space is visible on a display at a time. When you switch Spaces, the windows in the old Space disappear from view and the windows in the new Space appear.
Apple's interface calls the ordinary kind of Space a Desktop. You will see names such as "Desktop 1" and "Desktop 2". The wallpaper, the menu bar, and the Dock are shared across them, but the windows are not.
Spaces are not virtual machines or separate user sessions. Every app keeps running when you leave its Space. You are changing which windows are on screen.
Two kinds of Space
macOS has two kinds of Space, and they behave differently.
| Kind | How it is created | What it contains | How it is removed |
|---|---|---|---|
| Desktop Space | You add it in Mission Control | Any number of windows from any apps | You remove it in Mission Control |
| Full-screen Space | An app enters full-screen mode | One full-screen window, or two windows in Split View | It disappears when the app leaves full-screen mode |
A Desktop Space is permanent until you delete it. A full-screen Space is temporary. macOS creates it when an app goes full screen and deletes it when the app exits full screen.
In Mission Control, full-screen Spaces appear to the right of your Desktop Spaces. They are labeled with the app's name.
Where each window lives
Every window belongs to exactly one Space. Think of each Space as a room, and each window as an object kept in one room.
Two details affect how this feels in practice:
- An app can have windows in several Spaces at once. For example, you can keep one browser window in Desktop 1 and another in Desktop 2.
- When you switch to an app with the Command-Tab app switcher, macOS usually takes you to a Space where that app has a window. This can feel like an unexpected jump. A later chapter on settings covers how to change it.
An app can also be assigned to appear in every Space. The Dock uses this for its own icons. Assigning apps to Spaces is covered in its own chapter.
How Spaces are ordered
Spaces sit in a row from left to right. Desktop Spaces come first, in the order you created them, and full-screen Spaces follow. Switching with a gesture or shortcut moves one step along this row.
By default, macOS may rearrange the Desktop Spaces based on how recently you used them. This option is called "Automatically rearrange Spaces based on most recent use". It can make the order unpredictable, so many people turn it off. You can check how it is set from the terminal:
defaults read com.apple.dock mru-spacesIf the key was never changed, the command reports that the key does not exist. That means the system default applies.
A picture of the model
The diagram below shows one display with two Desktop Spaces and one full-screen Space.
Only one of the three Spaces is visible at a time. The others keep their windows in place until you return to them.
Common mistakes
- Thinking a Space is an app. A Space holds windows. It is not tied to one app, unless the Space is a full-screen one.
- Expecting full-screen Spaces to stay. They vanish when the app leaves full screen, so you cannot keep one in place.
- Losing a window. A window you cannot see is probably in another Space. Opening Mission Control shows all Spaces at once. The next chapter covers it.
Exercise
You put a browser window in Desktop 1, then put the same browser into full screen. Which Spaces now contain browser windows, and what happens to the full-screen one when you leave full screen?
Show answer
Desktop 1 may still contain any other browser windows you left there, and a new full-screen Space contains the full-screen browser window. When you leave full screen, macOS deletes the full-screen Space and the window returns to a Desktop Space.
Exercise
Which terminal command shows whether the Spaces-reordering setting was ever changed, and what does it mean if the key does not exist?
Show answer
defaults read com.apple.dock mru-spaces. If the key does not exist, the setting was never changed and the system default applies.