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: QuickDraw GX Environment and Utilities /
Chapter 1 - QuickDraw GX and the Macintosh Environment / QuickDraw GX and the Macintosh Environment Reference
Constants and Data Types


Gestalt Selectors and Attributes

The selector 'grfx' can be used with the Gestalt function to determine whether the graphics and typography portions of QuickDraw GX have been installed. The 'pmgr' selector can be used to determine whether QuickDraw GX printing is installed. Gestalt returns the version number in either case.

If you call Gestalt with the gestaltGraphicsAttr selector, it returns an attribute that specifies whether the debugging or nondebugging version of QuickDraw GX is installed, and what platform it is installed on. You can use the 'qdgx' selector to determine if QuickDraw GX is installed.

#define gestaltGXVersion               'qdgx'
#define gestaltGraphicsVersion         'grfx'
#define gestaltPrintingMgrVersion      'pmgr'
#define gestaltCurrentGraphicsVersion  0x00010000

#define gestaltGraphicsAttr            'gfxa'
#define gestaltGraphicsisDebugging     0x00000001
#define gestaltGraphicsisLoaded        0x00000002
#define gestaltGraphicsIsPowerPC       0x00000004
These selectors and attributes are described in the section "Testing for the Presence and Version of QuickDraw GX" beginning on page 1-4. The Gestalt function is described in the chapter "Gestalt Manager" in Inside Macintosh: Operating System Utilities.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996