Important: The information in this document is obsolete and should not be used for new development.
About the Standard File Package
Macintosh applications typically have a File menu from which the user can save and open documents, via the Save, Save As, and Open commands. When the user chooses Open to open an existing document, your application needs to determine which document to open. Similarly, when the user chooses Save As, or Save when the document is untitled, your application needs to ask the user for the name and location
of the file in which the document is to be saved.The Standard File Package provides a number of routines that handle the user interface between the user and your application when the user saves or opens a document. It displays dialog boxes through which the user specifies the name and location of the document to be saved or opened. It also allows your application to customize the dialog boxes and, through callback routines, to handle user actions during the dialogs. The Standard File Package procedures return information about the user's choices to your application through a reply record.
The Standard File Package is available in all versions of system software. However, significant improvements were made to the package in system software version 7.0. The Standard File Package in version 7.0 introduces
This section describes in detail the standard and customized user interfaces provided by the enhanced Standard File Package in system software version 7.0 and later. If your application is to run in earlier system software versions as well, you should read the section "Using the Original Procedures" on page 3-40.
- a pair of simplified procedures (
StandardGetFile
andStandardPutFile
) that you call to display and handle the standard Open and Save dialog boxes- a pair of customizable procedures (
CustomGetFile
andCustomPutFile
) that you call when you need more control over the interaction- a new reply record (
StandardFileReply
) that identifies files and folders with a file system specification record and that accommodates the new Finder features introduced in system software version 7.0- a new layout for the standard dialog boxes
- IMPORTANT
- If you use the enhanced routines introduced in system software
version 7.0, you must also support the Open Documents Apple event.
Subtopics
- Standard User Interfaces
- Customized User Interfaces