![]() |
PATH![]() |
![]() ![]() |
The ColorSync Manager provides the function
CMGetColorSyncFolderSpec
to obtain the location of the ColorSync Profiles folder. See the function description for changes starting with ColorSync version 2.5.
Obtains the volume reference number and the directory ID for the ColorSync Profiles folder.
pascal CMError CMGetColorSyncFolderSpec (
short vRefNum,
Boolean createFolder,
short *foundVRefNum,
long *foundDirID);
If the ColorSync Profiles folder does not already exist, you can use this function to create it.
Starting with version 2.5, the name and location of the profile folder changed, as described in Profile Search Locations .
Your application should use the function
CMIterateColorSyncFolder
, available starting in ColorSync version 2.5, or one of the search functions described in
Searching for Profiles Prior to ColorSync 2.5
, to search for a profile file, even if it is only looking for one file. Do not search for a profile file by obtaining the location of the profiles folder and searching for the file directly.
For information about the Macintosh file system, see Inside Macintosh: Files.