Important: The information in this document is obsolete and should not be used for new development.
Creating File System Specification Records
Sometimes it is useful for your application to create a file system specification record. For example, your application might be running in an environment where the enhanced Standard File Package routines (which returnFSSpec
records) are unavailable but the File Manager routines that acceptFSSpec
records are available (perhaps as glue code in your development system). You can call theFSMakeFSSpec
function (or its low-level equivalentPBMakeFSSpec
) to initialize a file system specification record.Three of the parameters to
FSMakeFSSpec
represent the volume, parent directory, and file specifications of the target object. You can provide this information in any of the four combinations described in "HFS Specifications" beginning on page 2-28. Table 2-10 details the ways your application can identify the name and location of a file or directory in a call toFSMakeFSSpec
.The fourth parameter to
FSMakeFSSpec
is a pointer to theFSSpec
record.