PATHDocumentation > Mac OS 8 and 9 > Mutlimedia and Graphics > ColorSync Manager >

Managing Color With ColorSync


Older ColorSync Gestalt Selectors

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. */
};

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.

© 1988-1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)