Hi!

I am talking about this code:
        short vol_ref;
        long dir_id;
        FSSpec fsspec;
        FSRef fsref;
        OSErr error = FindFolder(kUserDomain, kApplicationSupportFolderType, 
FALSE, 
&vol_ref, &dir_id);
        if (!error)
                error = FSMakeFSSpec(vol_ref, dir_id, (const unsigned char *) 
"", &fsspec);
        if (!error)
                error = FSpMakeFSRef(&fsspec, &fsref);
        if (!error)
                error = FSRefMakePath(&fsref, tmpstr, MAX_PATH);

I just had a look at Apple's Folder Manager API-docs and found FSFindFolder() 
which seems to allow to skip FSMakeFSSpec() and FSpMakeFSRef() (it takes a 
pointer to a FSRef, so I guess it can set that itself?).
Is this correct? Was there any specific reason why this function was not 
choosen?

--Dennis

Attachment: pgpEhPqL0N6on.pgp
Description: PGP signature

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to