Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 3 - ColorSync Manager Reference for Applications and Device Drivers / Constants and Data Types


Constants for ColorSync Manager Gestalt Selectors and Responses

You use the following constants with the Gestalt function to determine which version of ColorSync is present. For a code sample, see "Determining if the ColorSync Manager Is Available" (page 4-13) in Advanced Color Imaging on the Mac OS.

enum {
   gestaltColorMatchingVersion = 'cmtc', /* selector for version info */
   gestaltColorSync10      = 0x0100, /* ColorSync 1.0; low-level matching
                                       only */
   gestaltColorSync11      = 0x0110, /* ColorSync 1.0.3 */
   gestaltColorSync104     = 0x0104, /* ColorSync 1.0.4 */
   gestaltColorSync105     = 0x0105, /* ColorSync 1.0.5 */
   gestaltColorSync20      = 0x0200, /* ColorSync 2.0 */
   gestaltColorSync21      = 0x0210  /* ColorSync 2.1 */
};
Enumerator descriptions

gestaltColorMatchingVersion
The selector for obtaining version information. Use when calling the Gestalt function to determine whether the ColorSync Manager is available.
gestaltColorSync10
A Gestalt response value of gestaltColorSync10 indicates version 1.0 of the ColorSync Manager is present. This version supports low-level matching only.
gestaltColorSync11
A Gestalt response value of gestaltColorSync11 indicates version 1.0.3 of the ColorSync Manager is present.
gestaltColorSync104
A Gestalt response value of gestaltColorSync104 indicates version 1.4 of the ColorSync Manager is present.
gestaltColorSync105
A Gestalt response value of gestaltColorSync105 indicates version 1.5 of the ColorSync Manager is present.
gestaltColorSync20
A Gestalt response value of gestaltColorSync20 indicates version 2.0 of the ColorSync Manager is present.
gestaltColorSync21
A Gestalt response value of gestaltColorSync20 indicates version 2.1 of the ColorSync Manager is present.
Newer applications should use these values to check for the ColorSync version they require. However, for backward compatibility, you can still use the following older style constants to check for ColorSync attributes.

enum {
   gestaltColorMatchingAttr= 'cmta',/* selector for version info */
   gestaltHighLevelMatching= 0,     /* bit 0 set if ColorSync present */
   gestaltColorMatchingLibLoaded = 1/* bit 1 set if ColorSync present on
                                       Power Mac machine; cleared if
                                       present on 68K machine */
};
Enumerator descriptions

gestaltColorMatchingAttr
The selector for obtaining version information. Use when calling the Gestalt function to check for particular ColorSync Manager features.
gestaltHighLevelMatching
This constant is provided for backward compatibility only. Bit 0 of the Gestalt response value is always set if ColorSync is present.
gestaltColorMatchingLibLoaded
This constant is provided for backward compatibility only. Bit 1 of the Gestalt response value is always set on a Power Macintosh machine if ColorSync is present. It is always cleared on a 68K machine if ColorSync is present.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996