While Finder windows were introduced in the last chapter during our discussion of the file system, here we are going to take an up-close look at windows and their use. Basically, windows are holders that appear on your desktop to display whatever you are working on. Finder windows contain listings of folder, files and applications, while application windows provide a workspace where you can write a document, view an image, or do whatever it is the application was designed for.
To make an open window active, you click it (it makes the title black and brings it to the front). Every time you open a folder or drive of any kind (including your hard drive as we discussed in the last chapter) by double-clicking it, it opens a Finder display window (see Figure 3.1). The one I'm showing here is the icon view.
Figure 3.1. This is a typical Mac OS X Finder window in icon view.
In the upper-left corner of each window are the Close (red x), Minimize (yellow), and Zoom (green +) buttons . Differentiated only by color and position, the corresponding symbol appears in each button when the mouse cursor nears.
Clicking the Close button closes the open window. The Mac OS X Minimize button shrinks the window into an icon view and places it in the Dock. This icon is a miniature of the original windowdown to the items it contains. In some cases, the icon even updates its appearance when the parent application generates new output. Clicking the icon in the Dock restores the window to its original position and size on the screen.
The Zoom button (usually) opens the window to the size necessary to display the available information. Most Windows PC users expect the maximized window to fill the entire screen. However, if there are only three icons to be shown, Mac OS X doesn't waste space by filling up your window with blank space.
In the upper-right corner of some windows (including the windows for the Finder and applications such as Mail and Preview, which we'll look at in some later chapters) is an elongated button, called Hide/Show Toolbar, that can be used to quickly show or hide special toolbars in the top of the application window. The result of hiding the toolbar in the Mail application is shown in Figure 3.2.
Figure 3.2. With the task toolbar hidden, the window occupies less screen space.
The toolbar version of the Finder window provides several useful controls for viewing and navigating your files.
In the upper-left corner of the toolbar are the Back and Forward arrowsclick it to return to the previous folder. Using this technique, you can dig many levels deep into the file system, and then quickly back out by using the Back button. The Forward arrow enables you to follow the same path back to inner levels.
By default, there are several other elements in the toolbar, as shown in Figure 3.1. From left to right, you see the View selector, buttons to Computer, Home, Favorites, and Applications, and the Search text entry field.
Finder Window View Options
Let's take a look at the view options for Finder windows. Three buttons in the View selector enable you to control the way information is displayed in the Finder window.
The first time you log in, the Finder is in toolbar mode and using Icon view. If you've already been using the Finder and are no longer in Icon view, you can quickly switch to Icon view by choosing As Icons from the View menu or by clicking the first button in the View selector of the toolbar. Figure 3.1 shows the Finder window in Icon view. In Icon view mode, you can navigate through the folders on your drive by double-clicking them.
The next view to explore is the Finder's List view. You can switch to List view by clicking the middle button in the Finder's View selector or, if the toolbar isn't present, by choosing As List from the Finder's View menu. Demonstrated in Figure 3.3, the List view is a straightforward means of displaying all available information about a file or folder in tabular form.
Figure 3.3. List view packs a lot of information into a small amount of space.
The columns in the List view represent the attributes for each file. Clicking a column highlights it and sorts the file listing based on that column's values. For example, if you want to locate the most recent files in a folder, you can view the folder contents in List view and click the Date Modified header. By default, the column values are listed in descending order. Clicking a column header again reverses the sorting order. An arrow pointing up or down at the right of each column indicates the current sort order.
You can change the width of the columns by placing the mouse cursor at the edge of the column and click-dragging to the left or right. You can reposition the columns by clicking and dragging them into the order you want. However, the first column, Name , cannot be repositioned.
When a folder appears in the file listing, a small disclosure triangle precedes its name. Clicking the triangle reveals the file hierarchy within that folder. As with Icon view, double-clicking a folder anywhere in this view either opens a new window (if you're in toolbar-less mode) or refreshes the contents of the existing window with the new location.
Unlike other views, which can either overwhelm you with information or require multiple windows to move easily from point to point, the Column view is designed with one thing in mind: ease of navigation.
The concept is very simple: Click an item in the first column and its contents are shown in the next column. Click a folder in this new column and its contents are shown in the next column, and so on. Figure 3.4 shows a multicolumn display that reaches down two levels.
Figure 3.4. Using the Column view, you can easily navigate through the folders on your hard drive.
One big bonus of using Column view is the ability to instantly see the contents of a file without opening it. If you choose a file or application, a preview or description of the selected item appears in the column to the right. For an example, take a look at the far right column in Figure 3.4, where a representation of an image file is displayed. When you choose an application or a file that cannot be previewed, only information about the file is displayed, such as the creation/modification dates, size, and version.
Show View Options
For each of the three Finder window views, there are additional settings that you can customize by choosing Show View Options from the View menu. You can also choose whether your changes apply to the current window only or to all Finder windows.
For Icon view, you can scale icons from the smallest to largest size by dragging the Icon Size slider from the left to the right. You can choose how the icon is labeled, including the font size and label placement. You can set how the icons are arranged and what color the window background is.
List view enables you to choose small or larger icons, text size, and which columns of information to display with the filenames.
Column view gives you options for text size and whether to include icons in the preview column. There are no global settings for this view.
Customizing Toolbar Shortcuts
You can customize your Finder toolbar by adding other predefined Mac OS X shortcuts or by removing the default items in this way:
In addition to these predefined options, users can define their own shortcuts. To do this, simply drag common applications, documents, and folders to any place on the toolbar.
When folders and applications are added to the toolbar, a single click on the icon opens or launches the selected item. Users can also drag documents onto an application icon or folder icon in the toolbar to open the file by using the application or to move the file into a folder.
Window Scrolling, Moving, and Resizing
Because windows can't always to be large enough to show everything inside them at once, they support a feature called scrolling. Scrolling allows you move the viewable area of a window's contents by moving up and down (or left and right). The tools that allow scrolling appear on the left for vertically scrolling and on the bottom for horizontal scrolling. Here is a description of each:
Another characteristic of Mac OS X windows is the borderless content area. As shown in Figure 3.6, the display in most Mac OS X application windows stretches to the edge of the content window. In contrast, some operating systems such as Mac OS 9 and Windows offer window borders for dragging.
Figure 3.6. The content in a window goes right to the edge.
To drag a window, you must grab it by its title bar.
To resize a window, click and drag the resize icon in the lower-right corner of each window. Many applications in Mac OS X take advantage of live resizing; that is, as you resize the window, its contents adjust in real-time (such as Web pages in Internet Explorer). However, unless you have a fast computer, live resizing can be slow.
In addition to scrollbars and resize boxes, there are several other interface controls you need to know about. We'll call them window widgets . Samples of many of the Mac OS X Aqua window widgets are shown in Figure 3.7.
Figure 3.7. These are the Mac OS X window widgets.
Aqua interface elements include the following:
Sheet Windows and Window Trays
Two unique interface elements are sheets and window trays. Normally, when a computer wants to get your attention, it displays a dialog box containing a question such as, "Do you want to save this document?". If you have 10 open documents on your system, how do you know which one needs to be saved?
Sheet windows are used in place of such traditional dialog boxes. Sheets connect directly to the title bar of an open window. As shown in Figure 3.8, these messages appear inside the window they're associated with, so you'll be able to tell what the question you're answering will affect.
Figure 3.8. The sheet appears to drop from an open window's title bar.
Sheets are used just like regular dialog boxes, except that they're attached to a document. Unlike many dialog boxes, which keep you from interacting with the rest of the system until you attend to them, sheets limit access only to the window in which they appear.
A window tray is an interface element that can be used by software programmers. A tray is used to store commonly used settings and options that might need to be accessed while a program is running. Figure 3.9 shows the Mail application's window tray holding a list of active mailboxes.
Figure 3.9. Window trays hold options that are needed often during a program's execution.
To use active trays in applications that support their use, you typically click a button in the toolbar. After a tray is open, you can drag its edge to change the tray's size.
Now that we're comfortable with what windows can do, let's take a look at folders.