C++ Tutorials‎ > ‎

File Manager: TypeChanger Demo


Here is the definition of StandardFileReply taken from Inside Macintosh: Files, Chapter 3.

struct StandardFileReply {        /*enhanced standard file reply record*/
    Boolean    sfGood;            /*TRUE if user did not cancel*/
    Boolean    sfReplacing;       /*TRUE if replacing file with same name*/
    OSType     sfType;            /*file type*/
    FSSpec     sfFile;            /*selected file, folder, or volume*/
    ScriptCode sfScript;          /*script of file, folder, or volume name*/
    short      sfFlags;           /*Finder flags of selected item*/
    Boolean    sfIsFolder;        /*selected item is a folder*/
    Boolean    sfIsVolume;        /*selected item is a volume*/
    long       sfReserved1;       /*reserved*/
    short      sfReserved2;       /*reserved*/
};

Here is the definition of FSSpec taken from Inside Macintosh: Files, Chapter 2.

struct FSSpec {     /* file system specification*/
    short vRefNum;  /*volume reference number*/
    long  parID;    /*directory ID of parent directory*/
    Str63 name;     /*filename or directory name*/

blah

for drag and drop see inside macintosh: toolbox essentials page 7-18
Comments