Important: The information in this document is obsolete and should not be used for new development.
Gestalt Selectors and Attributes
The selector'grfx'can be used with theGestaltfunction 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.Gestaltreturns the version number in either case.If you call
Gestaltwith 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 0x00000004These selectors and attributes are described in the section "Testing for the Presence and Version of QuickDraw GX" beginning on page 1-4. TheGestaltfunction is described in the chapter "Gestalt Manager" in Inside Macintosh: Operating System Utilities.
 
  
  
 