Developer --> Technical Publications

     


Persistence

Persistence is the ability of Navigation Services to store information, such as the last directory location visited and the size and position of dialog boxes. This information is maintained on a per-application basis. For example, this allows the user to set an Open dialog box's position and size differently for a word-processing application than for a spreadsheet, for example.

Navigation Services separates preferences for Open and Save dialog boxes so that each dialog box's preferences are unique for each application. This allows a user to open documents from one folder and save new documents in another folder without any added navigation. Dialog boxes also remember the last document opened and makes this the default selection the next time the dialog box is used.

Note: If no location has been stored for a dialog box or if the directory itself is not available (its volume is unmounted, for example), the desktop becomes the default location.

If the user navigates to the parent directory of the default location through the browser list or by using the location pop-up menu, the default location becomes the current selection.

Note: If the user navigates to the parent directory of the current location by using shortcuts and takes an indirect route to the parent directory, the browser list may display a different default selection.

The size, position, sort key, and sort order of dialog boxes are stored for each application. If a dialog box's position has not been previously set or can't be shown, the dialog box is displayed in the center of the main screen -- that is, the one with the menu bar. Alert boxes do not store default locations or alert box size information.


© 2000 Apple Computer, Inc. (Last Updated 18 April 00)