Window Controls

As in Windows, a window on the Mac is framed by an assortment of doodads and gizmos (Figure 1-8). You’ll need these to move a window, to close it, to resize it, to scroll it, and so on. But once you get to know the ones on a Macintosh, you’re likely to be pleased by the amount of thought those fussy perfectionists at Apple have put into their design.

Here’s an overview of the various Mac OS X window-edge gizmos and what they do.

Title Bar

When several windows are open, the darkened window name and colorful upper-left controls tell you which window is active (in front). Windows in the background have gray, dimmed lettering and gray upper-left control buttons. As in Windows, the title bar also acts as a handle that lets you move the entire window around on the screen.

Right-click, or -click, a Finder window’s title bar to summon the hidden folder hierarchy menu. This trick also works in most other Mac OS X programs. For example, you can -click a document window’s title to find out where the document is actually saved on your hard drive.

Figure 1-9. Right-click, or -click, a Finder window’s title bar to summon the hidden folder hierarchy menu. This trick also works in most other Mac OS X programs. For example, you can -click a document window’s title to find out where the document is actually saved on your hard drive.

Tip

Here’s a nifty keyboard shortcut with no Windows equivalent: You can cycle through the different open windows in one program without using the mouse. Just press -` (that’s the tilde key, to the left of the number 1 key). With each press, you bring a different window forward within the current program. It works both in the Finder and in your programs.

After you’ve opened one folder inside another, the title bar’s secret folder hierarchy menu is an efficient way to backtrack—to return to the enclosing window. Figure 1-9 reveals everything about the process after this key move: pressing the key as you click the name of the window. (You can release the key immediately after clicking.)

One more title bar trick: By double-clicking the title bar, you minimize the window (see Minimize Button).

The Folder Proxy Icon

Virtually every Macintosh title bar features a small icon next to the window’s name (Figure 1-10), representing the open window’s actual folder or disk icon. In the Finder, dragging this tiny icon (technically called the folder proxy icon) lets you move or copy the folder to a different folder or disk, to the Trash, or into the Dock, without having to close the window first. (When clicking this proxy icon, hold down the mouse button for half a second, or until the icon darkens. Only then are you allowed to drag it.) It’s a handy little function with no Windows equivalent.

When you find yourself confronting a Finder window that contains useful stuff, consider dragging its proxy icon to the Dock. That will install its folder or disk icon there for future use. It’s not the same as minimizing the window, which puts the window icon into the Dock only temporarily. (Note: Most document windows also offer a proxy-icon feature, but it usually produces only an alias when you drag the proxy to a different folder or disk.)

Figure 1-10. When you find yourself confronting a Finder window that contains useful stuff, consider dragging its proxy icon to the Dock. That will install its folder or disk icon there for future use. It’s not the same as minimizing the window, which puts the window icon into the Dock only temporarily. (Note: Most document windows also offer a proxy-icon feature, but it usually produces only an alias when you drag the proxy to a different folder or disk.)

Tip

In some programs, including Microsoft Word, dragging this proxy icon lets you move the actual file to a different disk or folder—without even leaving the program. It’s a great way to make a backup of the document you’re working on without interrupting your work.

Close Button

As the tip of your cursor crosses the three buttons at the upper-left corner of a window, tiny symbols appear inside them: ×, , and +. The most important one is the Close button, the red, droplet-like button in the upper-left corner (see Figure 1-8). It closes the window, exactly like the × button at the upper-right corner in Windows. Learning to reach for the upper-left corner instead of the upper right will probably confound your muscle memory for the first week of using the Mac.

If you can’t break the habit, learn the keyboard shortcut: -W (for window)—an easier keystroke to type than the Windows version (Alt+F4), which for most people is a two-handed operation. If you get into the habit of dismissing windows with that deft flex of your left hand, you’ll find it far easier to close several windows in a row, because you won’t have to aim for successive Close buttons.

Tip

If, while working on a document, you see a tiny dot in the center of the Close button, Mac OS X is trying to tell you that you haven’t yet saved your work. The dot goes away when you save the document.

Minimize Button

Click this yellow drop of gel to minimize any Mac window, sending it shrinking, with a genie-like animated effect, into the right end of the Dock, where it now appears as an icon. It’s exactly like minimizing a window in Windows, except that the window is now represented by a Dock icon rather than a taskbar button (Figure 1-11). To bring the window back to full size, click the newly created Dock icon. See Chapter 2 for more on the Dock.

Clicking the Minimize button sends a window scurrying down to the Dock, collapsing in on itself as though being forced through a tiny, invisible funnel. A little icon appears on the lower-right corner of its minimized image to identify the program it’s running in.

Figure 1-11. Clicking the Minimize button sends a window scurrying down to the Dock, collapsing in on itself as though being forced through a tiny, invisible funnel. A little icon appears on the lower-right corner of its minimized image to identify the program it’s running in.

Tip

You actually have a bigger target than the tiny minimize button. The entire title bar is a giant Minimize button when you double-click anywhere on it. Or just press -M for Minimize.

Zoom Button

A click on this green geltab (Figure 1-8) makes a desktop window just large enough to show you all the icons inside it. If your monitor isn’t big enough to show all the icons in a window, then the zoom box resizes the window to show as many as possible. In either case, a second click on the zoom button restores the window to its original size. (The Window→Zoom Window command does the same thing.)

This should sound familiar: It’s a lot like the Maximize button at the top right of a Windows window. On the Mac, however, the window rarely springs so big that it fills the entire screen, leaving a lot of empty space around the window contents; it grows only enough to show you as much of the contents as possible.

The Finder Sidebar

The Sidebar (Figure 1-12) is the pane at the left side of every Finder window, unless you’ve hidden it. (It’s also at the left side of every Open dialog box and every full-size Save dialog box.) It has as many as three sections, each preceded by a collapsible heading.

Tip

If you point to a heading without clicking, a tiny Hide or Show button appears. Click it to collapse or expand that heading’s contents.

The Sidebar makes navigation very quick, because you can jump back and forth between distant corners of your Mac with a single click. In column view, the Sidebar is especially handy because it eliminates all the columns to the left of the one you want, all the way back to the hard-drive level. You’ve just folded up your desktop! Good things to put here: favorite programs, disks on a network you often connect to, a document you’re working on every day, and so on. Folder and disk icons here work just like normal ones. You can drag a document onto a folder icon to file it there, drag a document onto a program’s icon to open it with the “wrong” program, and so on.

Figure 1-12. The Sidebar makes navigation very quick, because you can jump back and forth between distant corners of your Mac with a single click. In column view, the Sidebar is especially handy because it eliminates all the columns to the left of the one you want, all the way back to the hard-drive level. You’ve just folded up your desktop! Good things to put here: favorite programs, disks on a network you often connect to, a document you’re working on every day, and so on. Folder and disk icons here work just like normal ones. You can drag a document onto a folder icon to file it there, drag a document onto a program’s icon to open it with the “wrong” program, and so on.

Here are the headings you’ll soon know and love:

  • Favorites. This primary section of the Sidebar is the place to stash things for easy access. You can stock this list with the icons of disks, files, programs, and folders.

    Each icon is a shortcut. For example, click the Applications icon to view the contents of your Applications folder in the main part of the window. And if you click the icon of a file or a program, it opens.

    Here, too, you’ll find the icons for two of Lion’s new features: All My Files (see the box on the previous page) and AirDrop, the instant-file-sharing feature described in AirDrop.

  • Shared. It took 20 years for an operating system to list all the other computers on the home or small-office network, right there in every window, without any digging, connecting, button clicking, or window opening. But here it is: a complete list of the other computers on your network whose owners have turned on File Sharing, ready for access (see Chapter 14 for details).

  • Devices. This section lists every storage device connected to, or installed inside, your Mac: hard drives, iPhones, iPads, iPods, CDs, DVDs, memory cards, USB flash drives, and so on. (Your main hard drive doesn’t usually appear here, but you can drag it here.) The removable ones—like CDs, DVDs, flash drives, i-gadgets—bear a little gray logo, which you can click to eject that disk.

Fine-tuning the Sidebar

The beauty of this parking lot for containers is that it’s so easy to set up with your favorite places. For example:

  • Remove an icon by -dragging it out of the Sidebar entirely. It vanishes with a puff of smoke (and even a little whoof sound effect). You haven’t actually removed anything from your Mac; you’ve just unhitched its alias from the Sidebar.

    Tip

    You can’t drag items out of the Shared list. Also, if you drag a Devices item out of the list, you’ll have to choose Finder→Preferences→Sidebar and then turn on the appropriate checkbox to put it back in.

  • Rearrange the icons by dragging them up or down in the list. (You’re not allowed to rearrange the computers listed in the Shared section, though.)

  • Install a new icon by dragging it off your desktop (or out of a window) into any spot in the Favorites list of the Sidebar. You can’t drag icons into any section of the Sidebar—just Favorites.

    Tip

    You can also highlight an icon wherever it happens to be and then choose File→Add to Sidebar, or just press -T.

  • Adjust the width of the Sidebar by dragging its right edge—either the skinny divider line or the extreme right edge of the vertical scroll bar, if there is one. You “feel” a snap at the point when the line covers up about half of each icon’s name. Any covered-up names sprout ellipses (...) to let you know there’s more (as in “Secret Salaries Spreadsh...”).

  • Hide the Sidebar by pressing -Option-S, which is the shortcut for the View→Hide Sidebar command. Bring it back into view by pressing the same key combination (or by using the Show Sidebar command).

Then again, why would you ever want to hide the Sidebar? It’s one of the handiest navigation aids since the invention of the steering wheel. For example:

  • It takes a lot of pressure off the Dock. Instead of filling up your Dock with folder icons (all of which are frustratingly alike and unlabeled anyway), use the Sidebar to store them. You leave the Dock that much more room for programs and documents.

  • It’s better than the Dock. In some ways, the Sidebar is a lot like the Dock, in that you can stash favorite icons of any sort there. But the Sidebar reveals the names of these icons, and the Dock doesn’t until you use the mouse to point there.

  • It makes ejecting easy. Just click the button next to any removable disk to make it pop out. After 25 years, Mac has finally beaten the “It’s illogical to eject a disk by dragging it to the Trash!” problem.

  • It makes burning easy. When you’ve inserted a blank CD or DVD and loaded it up with stuff you want to copy, click the radioactive-looking Burn button next to its name to begin burning that disc. (Details on burning discs are in Chapter 9.)

  • You can drag onto its folders and disks. That is, you can drag icons onto Sidebar icons, exactly as though they were the real disks, folders, and programs they represent.

  • It simplifies connecting to networked disks. Park your other computers’ shared folder and disk icons here, as described in Chapter 15, to shave several steps off the usual connecting-via-network ritual.

Window Management

Mac OS X prefers to keep only one Finder window open at a time. That is, if a window called United States is filled with folders for the individual states, double-clicking the New York folder doesn’t open a second window. Instead, the New York window replaces the United States window, just as in Windows.

So what if you’ve now opened the New York folder, and you want to backtrack to the United States folder? In that case, just click the tiny (Back) button or use one of these alternatives:

  • Choose Go→Back.

  • Press -[ (left bracket).

  • Press -↑.

None of that helps you, however, if you want to copy a file from one folder into another, or to compare the contents of the two windows. In such cases, you’ll probably want to see both windows open at the same time.

You can open a second window using any of these techniques:

  • Choose File→New Finder Window (-N).

    Tip

    The window that appears when you do this is the All My Files window (Figure 1-11), but you can change that setting in Finder→Preferences→General.

  • -double-click a disk or folder icon.

  • Choose Finder→Preferences→General, and turn on “Always open folders in a new window.” Now when you double-click a folder, it always opens into a new window.

Scroll Bars

A scroll bar, of course, is the traditional window-edge slider that lets you move through a document that’s too big for the window. Without scroll bars in word processors, for example, you’d never be able to write a letter that’s taller than your screen.

In Lion, Apple expects that you’ll do most of your scrolling on your trackpad, Magic Mouse top surface, or scroll ball/scroll wheel. You almost never use the antiquated method of dragging the scroll bar’s handle manually, with the mouse.

Tip

More reasons nobody uses the mouse to scroll: You can scroll using the keyboard. Your Page Up and Page Down keys let you scroll up and down, one screen at a time, without having to take your hands off the keyboard. The Home and End keys are generally useful for jumping directly to the top or bottom of your document (or Finder window). And if you’ve bought a mouse that has a scroll wheel on the top, you can use it to scroll windows, without pressing any keys at all.

That’s a long-winded way of explaining why, in most Lion programs, the scroll bars are hidden. See Figure 1-13 for details.

Note

If the missing scroll bars leave you jittery and disoriented, you can bring them back. Open System Preferences→General and then turn on “Show scroll bars: Always.”

In Lion, scroll bars don’t appear at all while you’re working (lower right); you have that much more screen area dedicated to your work. If you begin to scroll by sliding your fingers across the trackpad or Magic Mouse, only the scroll-bar handle appears, so you know where you are (middle). The actual scroll bar—the track itself—doesn’t appear until you move your cursor onto it (top left).

Figure 1-13. In Lion, scroll bars don’t appear at all while you’re working (lower right); you have that much more screen area dedicated to your work. If you begin to scroll by sliding your fingers across the trackpad or Magic Mouse, only the scroll-bar handle appears, so you know where you are (middle). The actual scroll bar—the track itself—doesn’t appear until you move your cursor onto it (top left).

Resizable Edges

For the first 28 years of its existence, the Mac offered only one way to make a window bigger or smaller: Drag the ribbed-looking lower-right corner. You couldn’t change the shape of a Macintosh window by dragging its edges, as you can in Windows.

Now you can. Just move the mouse carefully to the exact top, bottom, left, or right edge; once its shape changes to a double-headed arrow, you can drag to move that window’s edge in or out.

Tip

If you press the Option key while dragging, you resize the opposite edge simultaneously. For example, if you Option-drag the bottom edge upward, the top edge simultaneously collapses downward.

If you press Shift as you drag, you resize the entire window, retaining its proportions.

And if you Shift-Option drag, you resize the window around its center, rather than from its edges.

Path Bar

This little item appears when you choose View→Show Path Bar. It’s a tiny map at the bottom of the window that shows where you are in the folder hierarchy. If it says Casey→Pictures→Picnic, well, then, you’re looking at the contents of the Picnic folder, which is inside Pictures, which is inside your Home folder (assuming your name is Casey).

Tip

Each tiny folder icon in this display is fully operational. You can double-click it to open it, Control-click (right-click) it to open a shortcut menu, or even drag things into it.

Status Bar

Out of the box, Lion hides yet another information strip at the bottom of a window—the status bar, which tells you how many icons are in the window (“14 items,” for example) and the amount of free space remaining on the disk. To make it appear, choose View→Show Status Bar.

Get Switching to the Mac: The Missing Manual, Lion Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.