Not Recommended
The following constants were added to ColorSync version 2.0 to aid in the transition from 68K to PowerPC systems. They are not recommended for new applications and are not guaranteed to be carried forward in future versions of ColorSync. However, they are still supported as of version 2.5 for backward compatibility. If you call the
Gestalt
function passing the selector
gestaltColorMatchingAttr
, you can test the bit fields of the returned value with the
gestaltColorMatchingLibLoaded
constant to determine if the ColorSync Manager shared libraries are loaded, or with the
gestaltHighLevelMatching
constant to determine if the ColorSync QuickDraw-specific functions are present.
enum {
gestaltColorMatchingAttr = 'cmta', /* Selector for version info. */
gestaltHighLevelMatching = 0, /* bit 0 set if ColorSync present */
gestaltColorMatchingLibLoaded = 1 /* bit 1 set if ColorSync present on
PowerPC-based machine; cleared if
on 68K machine. */
};