Gestalt Manager Reference
| Framework | CoreServices/CoreServices.h |
| Declared in | Gestalt.h |
Overview
The Gestalt Manager and other system software facilities allows you to investigate the operating environment. You need to know about the operating environment if your application takes advantage of hardware or software that is not available on all Macintosh computers. You can also use the Gestalt Manager to inform the operating system that your software is present and to find out about other software registered with the Gestalt Manager.
Carbon supports the Gestalt Manager. However, the results returned by Gestalt functions in OS X are relevant only to your application's context. In general, the Gestalt function returns a different result when called from a Carbon application running in OS X than it returns when called from a Classic application in OS X, because these are different environments. For example, Carbon does not use a ROM, so calling Gestalt from a Carbon application on a beige G3 Macintosh computer and passing the ROMVersion selector returns a different result than Gestalt returns for a Classic application on the same computer. In fact, Gestalt could conceivably return different results for the same call by two Carbon applications.
Because Gestalt operates on a per-context basis in OS X, you can't use it to share information (through pointers or any other means) among applications.
The ROMVersion and machineType selectors are not supported in Carbon.
In versions of the Mac OS prior to OS X, the NewGestalt and ReplaceGestalt functions make use of the system heap, so that new or replaced selectors are available to any process. In OS X, however, there is no system heap, and the selectors are available only on a per-context basis.
Functions by Task
Getting and Setting Gestalt Selector Codes and Values
-
NewGestaltDeprecated in OS X v10.3 -
ReplaceGestaltDeprecated in OS X v10.3 -
DeleteGestaltValueDeprecated in OS X v10.8 -
GestaltDeprecated in OS X v10.8 -
NewGestaltValueDeprecated in OS X v10.8 -
ReplaceGestaltValueDeprecated in OS X v10.8 -
SetGestaltValueDeprecated in OS X v10.8
Working With Universal Procedure Pointers for Gestalt Selector Functions
-
DisposeSelectorFunctionUPPDeprecated in OS X v10.8 -
InvokeSelectorFunctionUPPDeprecated in OS X v10.8 -
NewSelectorFunctionUPPDeprecated in OS X v10.8
Callbacks
SelectorFunctionProcPtr
Defines a pointer to a selector callback function that returns information associated with your own selector code.
typedef OSErr (*SelectorFunctionProcPtr) ( OSType selector, long * response );
If you name your function MySelectorFunctionProc, you would declare it like this:
OSErr SelectorFunctionProcPtr ( OSType selector, long * response );
Parameters
- selector
The selector code that triggers the function. This should be a four-character sequence similar to those defined in “Gestalt Manager Constants.”
- response
On output, the information associated with the selector code.
Return Value
A result code. See “Gestalt Manager Result Codes.”
Discussion
Your selector function places the requested information in the response parameter and returns a result code. If the information is not available, the selector function returns the appropriate error code, which the Gestalt function returns as its function result.
A selector function can call Gestalt or even other selector functions.
Availability
- Available in OS X v10.0 and later.
Declared In
Gestalt.hData Types
SelectorFunctionUPP
Defines a universal procedure pointer to a selector function callback.
typedef SelectorFunctionProcPtr SelectorFunctionUPP;
Discussion
You can obtain a SelectorFunctionUPP by calling the function NewSelectorFunctionUPP. For more information, see SelectorFunctionProcPtr.
Availability
- Available in OS X v10.0 and later.
Declared In
Gestalt.hConstants
Addressing Mode Attribute Selectors
Specify feature availability information for the addressing mode of the operating system.
enum {
gestaltAddressingModeAttr = 'addr',
gestalt32BitAddressing = 0,
gestalt32BitSysZone = 1,
gestalt32BitCapable = 2
};
Constants
gestaltAddressingModeAttrThe
Gestaltselector you pass to determine the addressing mode attributes that are present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt32BitAddressingIf
true, the operating system is using 32-bit addressing mode.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt32BitSysZoneIf
true, there is a 32-bit compatible system zone.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt32BitCapableIf
true, Machine is 32-bit capable.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent on memory, your application should pass the selector gestaltAddressingModeAttr to the Gestalt function to determine the addressing mode attributes that are present.
Admin Attribute Selectors
Specify feature availability for Macintosh Manager administration software.
enum {
gestaltAdminFeaturesFlagsAttr = 'fred',
gestaltFinderUsesSpecialOpenFoldersFile = 0
};
Constants
gestaltAdminFeaturesFlagsAttrThe
Gestaltselector you pass to determine the admin features that are present. This selector is typically used by the system.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFinderUsesSpecialOpenFoldersFileSpecifies that the Finder uses a special file to store the list of open folders.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
AFP Client Selectors
Specify version and feature availability information for the AFP client.
enum {
gestaltAFPClient = 'afps',
gestaltAFPClientVersionMask = 0x0000FFFF,
gestaltAFPClient3_5 = 0x0001,
gestaltAFPClient3_6 = 0x0002,
gestaltAFPClient3_6_1 = 0x0003,
gestaltAFPClient3_6_2 = 0x0004,
gestaltAFPClient3_6_3 = 0x0005,
gestaltAFPClient3_7 = 0x0006,
gestaltAFPClient3_7_2 = 0x0007,
gestaltAFPClient3_8 = 0x0008,
gestaltAFPClient3_8_1 = 0x0009,
gestaltAFPClient3_8_3 = 0x000A,
gestaltAFPClient3_8_4 = 0x000B,
gestaltAFPClientAttributeMask = 0xFFFF0000,
gestaltAFPClientCfgRsrc = 16,
gestaltAFPClientSupportsIP = 29,
gestaltAFPClientVMUI = 30,
gestaltAFPClientMultiReq = 31
};
Alias Manager Attribute Selectors
Specify feature availability information for the Alias Manager.
enum {
gestaltAliasMgrAttr = 'alis',
gestaltAliasMgrPresent = 0,
gestaltAliasMgrSupportsRemoteAppletalk = 1,
gestaltAliasMgrSupportsAOCEKeychain = 2,
gestaltAliasMgrResolveAliasFileWithMountOptions = 3,
gestaltAliasMgrFollowsAliasesWhenResolving = 4,
gestaltAliasMgrSupportsExtendedCalls = 5,
gestaltAliasMgrSupportsFSCalls = 6,
gestaltAliasMgrPrefersPath = 7
};
Constants
gestaltAliasMgrAttrThe selector you pass to the
Gestaltfunction to determine the Alias Manager attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Appearance Manager Attribute Selectors
Specify feature availability information for the Appearance Manager.
enum {
gestaltAppearanceAttr = 'appr',
gestaltAppearanceExists = 0,
gestaltAppearanceCompatMode = 1
};
Constants
gestaltAppearanceAttrThe
Gestaltselector passed to determine whether the Appearance Manager is present. Produces a 32-bit value whose bits you should test to determine which Appearance Manager features are available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAppearanceExistsIf this bit is set, Appearance Manager functions are available. To determine which version of the Appearance Manager is installed, check for the presence of the
GestaltselectorgestaltAppearanceVersion. If this bit is not set, Appearance Manager functions are not available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAppearanceCompatModeIf this bit is set, systemwide platinum appearance is off. When systemwide platinum appearance is off, the Appearance Manager does not auto-map standard System 7 definition functions to their Mac OS 8 equivalents (for those applications that have not called
RegisterAppearanceClient). If this bit is not set, systemwide platinum appearance is on, and the Appearance Manager auto-maps standard System 7 definition functions to their Mac OS 8 equivalents for all applications.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any functions dependent upon the Appearance Manager’s presence, your application should pass the selector gestaltAppearanceAttr to the Gestalt function to determine whether the Appearance Manager is present. To determine which version of the Appearance Manager is installed, your application should check for the presence of the Gestalt selector gestaltAppearanceVersion.
Appearance Manager Version Selector
Specifies version information for the Appearance Manager.
enum {
gestaltAppearanceVersion = 'apvr'
};
Constants
gestaltAppearanceVersionThe
Gestaltselector passed to determine which version of the Appearance Manager is installed. If this selector exists, Appearance Manager 1.0.1 (or later) is installed. The version number of the currently installed Appearance Manager is returned in the low-order word of the result in binary code decimal format (for example, version 1.0.1 would be 0x0101). If this selector does not exist butgestaltAppearanceAttrdoes, Appearance Manager 1.0 is installed.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Apple Event Manager Attribute Selectors
Specify feature availability information for the Apple Event Manager.
enum {
gestaltAppleEventsAttr = 'evnt',
gestaltAppleEventsPresent = 0,
gestaltScriptingSupport = 1,
gestaltOSLInSystem = 2,
gestaltSupportsApplicationURL = 4
};
Constants
gestaltAppleEventsAttrA selector you pass to the
Gestaltfunction. If the Apple Event Manager is not present, theGestaltfunction returns an error value; otherwise, it returnsnoErrand supplies, in theresponseparameter, a 32-bit value whose bits specify which features of the Apple Event Manager are available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAppleEventsPresentA
Gestaltattribute constant. If the bit specified by this constant is set in theresponseparameter value supplied byGestaltfor thegestaltAppleEventsAttrselector, the Apple Event Manager is present and installed in the system.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltScriptingSupportA
Gestaltattribute constant. If the bit specified by this constant is set in theresponseparameter value supplied byGestaltfor thegestaltAppleEventsAttrselector, the Open Scripting Architecture (OSA) is available to provide scripting support. The OSA is described in “Scripting Components”.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltOSLInSystemA
Gestaltattribute constant. If the bit specified by this constant is set in theresponseparameter value supplied byGestaltfor thegestaltAppleEventsAttrselector, the Object Support Library (OSL) is part of the system.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSupportsApplicationURLAvailable in OS X v10.1 and later.
Declared in
Gestalt.h.
AppleScript Attribute Selectors
Specify feature availability information for AppleScript.
enum {
gestaltAppleScriptAttr = 'ascr',
gestaltAppleScriptPresent = 0,
gestaltAppleScriptPowerPCSupport = 1
};
Constants
gestaltAppleScriptAttrA selector you pass to the
Gestaltfunction. If AppleScript is not present, theGestaltfunction returns an error value; otherwise, it returnsnoErrand supplies, in theresponseparameter, a 32-bit value whose bits specify which AppleScript features are available.The only bit currently in use specifies whether AppleScript is present. You can test this bit with the constant
gestaltAppleScriptPresent.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAppleScriptPresentA
Gestaltattribute constant. If the bit specified by this constant is set in theresponseparameter value supplied byGestaltfor thegestaltAppleScriptAttrselector, AppleScript is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAppleScriptPowerPCSupportAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
AppleScript Version Selector
Specifies version information for AppleScript.
enum {
gestaltAppleScriptVersion = 'ascv'
};
Constants
gestaltAppleScriptVersionA selector you pass to the
Gestaltfunction. If AppleScript is not present, theGestaltfunction returns an error value; otherwise, it returnsnoErrand supplies, in theresponseparameter, a 32-bit AppleScript version number.The low word of the 32-bit AppleScript version number specifies the current AppleScript version, while the high word specifies a compatibility version. For example, for AppleScript 1.3.7, which shipped with Mac OS 8.6, the value returned in the
responseparameter, viewed as a hex number, is 0x01100137. The low word, 0x0137, refers to the current AppleScript version. The high word, 0x0110, refers to the compatibility version number—scripts written for AppleScript versions 1.1.0 and later will run with AppleScript version 1.3.7.The Version Notes section provides additional information about AppleScript versions and features.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Version Notes
For System 7.0 and 7.1, AppleScript and the Apple Event Manager were optional installs. Starting with System 7.5, they are part of a standard install, so if you’ve already checked for the presence of System 7.5 or later, you’ll know that the Apple Event Manager is available, though AppleScript could be disabled using the Extensions Manager.
If you need features that are only available starting with a specific version of AppleScript, call Gestalt with the gestaltAppleScriptVersion selector to obtain the version number, then determine whether it is greater than or equal to the version your application requires.
AppleTalk Driver Version Selector
Specifies version information for the AppleTalk driver.
enum {
gestaltATalkVersion = 'atkv'
};
Constants
gestaltATalkVersionThe version number of the AppleTalk driver, in the format introduced with AppleTalk version 56. The version is stored in the high 3 bytes of the return value.
Byte 3 contains the major revision number, byte 2 contains the minor revision number, and byte 1 contains a constant that represents the release stage.
For example, if you call the
Gestaltfunction with the 'atkv' selector when AppleTalk version 57 is loaded, you receive the long integer response value $39008000.Byte 0 always contains 0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
AppleTalk Version Selector
Specifies version information for AppleTalk.
enum {
gestaltAppleTalkVersion = 'atlk'
};
Constants
gestaltAppleTalkVersionThe version number of the AppleTalk driver (in particular, the .MPP driver) currently installed. The version number is placed into the low-order byte of the result; ignore the three high-order bytes. If an AppleTalk driver is not currently open, the
responseparameter is 0.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
ATSUI Attribute Selectors
Specify feature availability for Apple Type Services for Unicode Imaging.
enum {
gestaltATSUFeatures = 'uisf',
gestaltATSUTrackingFeature = 0x00000001,
gestaltATSUMemoryFeature = 0x00000001,
gestaltATSUFallbacksFeature = 0x00000001,
gestaltATSUGlyphBoundsFeature = 0x00000001,
gestaltATSULineControlFeature = 0x00000001,
gestaltATSULayoutCreateAndCopyFeature = 0x00000001,
gestaltATSULayoutCacheClearFeature = 0x00000001,
gestaltATSUTextLocatorUsageFeature = 0x00000002,
gestaltATSULowLevelOrigFeatures = 0x00000004,
gestaltATSUFallbacksObjFeatures = 0x00000008,
gestaltATSUIgnoreLeadingFeature = 0x00000008,
gestaltATSUByCharacterClusterFeature = 0x00000010,
gestaltATSUAscentDescentControlsFeature = 0x00000010,
gestaltATSUHighlightInactiveTextFeature = 0x00000010,
gestaltATSUPositionToCursorFeature = 0x00000010,
gestaltATSUBatchBreakLinesFeature = 0x00000010,
gestaltATSUTabSupportFeature = 0x00000010,
gestaltATSUDirectAccess = 0x00000010,
gestaltATSUDecimalTabFeature = 0x00000020,
gestaltATSUBiDiCursorPositionFeature = 0x00000020,
gestaltATSUNearestCharLineBreakFeature = 0x00000020,
gestaltATSUHighlightColorControlFeature = 0x00000020,
gestaltATSUUnderlineOptionsStyleFeature = 0x00000020,
gestaltATSUStrikeThroughStyleFeature = 0x00000020,
gestaltATSUDropShadowStyleFeature = 0x00000020
};
Constants
gestaltATSUFeaturesSpecifies the ATSUI features available on the user’s system. You pass this selector to the
Gestaltfunction. On return, theGestaltfunction passes back a value that represents the features available in the version of ATSUI installed on the user’s system.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltATSUTrackingFeatureIf the bit specified by this mask constant is set, the functions
ATSUCountFontTrackingandATSUGetIndFontTrackingare available.Available beginning with ATSUI 1.1.
Declared in
Gestalt.h.gestaltATSUMemoryFeatureIf the bit specified by this mask is set, the functions
ATSUCreateMemorySetting,ATSUSetCurrentMemorySetting,ATSUGetCurrentMemorySetting, andATSUDisposeMemorySettingare available.Available beginning with ATSUI 1.1.
Declared in
Gestalt.h.gestaltATSUFallbacksFeatureIf the bit specified by this mask is set, the functions
ATSUSetFontFallbacksandATSUGetFontFallbacksare available.Available beginning with ATSUI 1.1.
Declared in
Gestalt.h.gestaltATSUGlyphBoundsFeatureIf the bit specified by this mask is set, the function
ATSUGetGlyphBoundsis available.Available beginning with ATSU 1.1.
Declared in
Gestalt.h.gestaltATSULineControlFeatureIf the bit specified by this mask is set, the functions
ATSUCopyLineControls,ATSUSetLineControls,ATSUGetLineControl,ATSUGetAllLineControls, andATSUClearLineControlsare available.Available beginning with ATSUI 1.1.
Declared in
Gestalt.h.gestaltATSULayoutCreateAndCopyFeatureIf the bit specified by this mask is set, the function
ATSUCreateAndCopyTextLayoutis available.Available beginning with ATSUI 1.1.
Declared in
Gestalt.h.gestaltATSULayoutCacheClearFeatureIf the bit specified by this mask is set, the function
ATSUClearLayoutCacheis available.Available beginning with ATSUI 1.1.
Declared in
Gestalt.h.gestaltATSUTextLocatorUsageFeatureIf the bit specified by this mask is set, the text-break locator attribute is available for both style and text layout objects.
Available beginning with ATSUI 1.2.
Declared in
Gestalt.h.gestaltATSULowLevelOrigFeaturesIf the bit specified by this mask is set, the low-level features introduced in ATSUI version 2.0 are available.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltATSUFallbacksObjFeaturesIf the bit specified by this mask is set,
ATSUFontFallbacksobjects are available.Available beginning with ATSUI version 2.3.
Declared in
Gestalt.h.gestaltATSUIgnoreLeadingFeatureIf the bit specified by this mask is set, the line layout option (
kATSIgnoreFontLeadingTag) to ignore the font leading value is available.Available beginning with ATSUI version 2.3.
Declared in
Gestalt.h.gestaltATSUByCharacterClusterFeatureIf the bit specified by this mask is set, ATSUI cursor movement types are available.
Available beginning with ATSUI version 2.4.
Declared in
Gestalt.h.gestaltATSUAscentDescentControlsFeatureIf the bit specified by this mask is set, ascent and descent controls (
kATSUDescentTagandkATSUAscentTag) are available.Available beginning with ATSUI version 2.4.
Declared in
Gestalt.h.gestaltATSUHighlightInactiveTextFeatureIf the bit specified by this mask is set, the highlight inactive text feature is available.
Available beginning with ATSUI version 2.4.
Declared in
Gestalt.h.gestaltATSUPositionToCursorFeatureIf the bit specified by this mask is set, the position-to-cursor feature is available.
Available beginning with ATSUI version 2.4.
Declared in
Gestalt.h.gestaltATSUBatchBreakLinesFeatureIf the bit specified by this mask is set, the
ATSUBatchBreakLinesfunction is available.Available beginning with ATSUI version 2.4.
Declared in
Gestalt.h.gestaltATSUTabSupportFeatureIf the bit specified by this mask is set, support for tabs is available.
Available beginning with ATSUI version 2.4.
Declared in
Gestalt.h.gestaltATSUDirectAccessIf the bit specified by this mask is set, ATSU direct-access functions are available. These functions let you access glyph information directly.
Available beginning with ATSUI version 2.4.
Declared in
Gestalt.h.gestaltATSUDecimalTabFeatureIf the bit specified by this mask is set, your application can set a decimal tab character.
Available beginning with ATSUI version 2.5.
Declared in
Gestalt.h.gestaltATSUBiDiCursorPositionFeatureIf the bit specified by this mask is set, support for bidirectional cursor positioning is available.
Available beginning with ATSUI version 2.5.
Declared in
Gestalt.h.gestaltATSUNearestCharLineBreakFeatureIf the bit specified by this mask is set, the nearest character line break feature is available.
Available beginning with ATSUI version 2.5.
Declared in
Gestalt.h.gestaltATSUHighlightColorControlFeatureIf the bit specified by this mask is set, your application can control highlight color.
Available beginning with ATSUI version 2.5.
Declared in
Gestalt.h.gestaltATSUUnderlineOptionsStyleFeatureIf the bit specified by this mask is set, underline options are available.
Available beginning with ATSUI version 2.5.
Declared in
Gestalt.h.gestaltATSUStrikeThroughStyleFeatureIf the bit specified by this mask is set, strike through styles are available.
Available beginning with ATSUI version 2.5.
Declared in
Gestalt.h.gestaltATSUDropShadowStyleFeatureIf the bit specified by this mask is set, drop shadow features are available.
Available beginning with ATSUI version 2.5.
Declared in
Gestalt.h.
Discussion
You can pass the gestaltATSUFeature selector to the Gestalt function to obtain a value that specifies which ATSUI features are available on the user’s system.
You can pass the gestaltATSUVersion selector to the Gestalt function to determine which version of ATSUI is installed on the user’s system. See “ATSUI Version Selectors” for more information
ATSUI Version Selectors
Specify version information for Apple Type Service for Unicode Imaging.
enum {
gestaltATSUVersion = 'uisv',
gestaltOriginalATSUVersion = (1 << 16),
gestaltATSUUpdate1 = (2 << 16),
gestaltATSUUpdate2 = (3 << 16),
gestaltATSUUpdate3 = (4 << 16),
gestaltATSUUpdate4 = (5 << 16),
gestaltATSUUpdate5 = (6 << 16),
gestaltATSUUpdate6 = (7 << 16),
gestaltATSUUpdate7 = (8 << 16)
};
Constants
gestaltATSUVersionSpecifies the version of ATSUI installed on the user’s system. You pass this selector to the
Gestaltfunction. On return, theGestaltfunction passes back a value that represents the version of ATSUI installed on the user’s system.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltOriginalATSUVersionIndicates that version 1.0 of ATSUI is installed on the user’s system.
Available beginning with ATSUI 1.0.
Declared in
Gestalt.h.gestaltATSUUpdate1Indicates that version 1.1 of ATSUI is installed on the user’s system.
Available beginning with ATSUI 1.1.
Declared in
Gestalt.h.gestaltATSUUpdate2Indicates that version 1.2 of ATSUI is installed on the user’s system.
Available beginning with ATSUI 1.2.
Declared in
Gestalt.h.gestaltATSUUpdate3Indicates that version 2.0 of ATSUI is installed on the user’s system.
Available beginning with ATSUI 2.0.
Declared in
Gestalt.h.gestaltATSUUpdate4Indicates that ATSUI for a version of OS X from 10.0.1 through 10.0.4 is installed on the user’s system.
Available beginning with OS X version 10.0.1.
Declared in
Gestalt.h.gestaltATSUUpdate5Indicates that version 2.3 of ATSUI is installed on the user’s system. Available beginning with ATSUI 2.3, in OS X version 10.1.
Available in OS X v10.1 and later.
Declared in
Gestalt.h.gestaltATSUUpdate6Indicates that version 2.4 of ATSUI is installed on the user’s system. Available beginning with ATSUI 2.4, in OS X version 10.2.
Available in OS X v10.2 and later.
Declared in
Gestalt.h.gestaltATSUUpdate7Indicates that version 2.5 of ATSUI is installed on the user’s system. Available beginning with ATSUI 2.5, in OS X version 10.3.
Available in OS X v10.3 and later.
Declared in
Gestalt.h.
Discussion
Before calling any functions dependent upon ATSUI, you should pass the gestaltATSUVersion selector to the Gestalt function to determine which version of ATSUI is available.
You can pass the gestaltATSUFeatures selector to the Gestalt function to determine which features of ATSUI are available. See “ATSUI Attribute Selectors” for more information.
ATA Manager Attribute Selectors
Specify feature availability information for the ATA Manager.
enum {
gestaltATAAttr = 'ata ',
gestaltATAPresent = 0
};
Constants
gestaltATAAttrAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltATAPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
AUX Version Selector
Specifies version information for A/UX.
enum {
gestaltAUXVersion = 'a/ux'
};
Constants
gestaltAUXVersionThe version of A/UX if it is currently executing. The result is placed into the low-order word of the response parameter. If A/UX is not executing, the
Gestaltfunction returnsgestaltUnknownErr.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
AVL Tree Attribute Selectors
Specify feature availability information for AVL tree routines.
enum {
gestaltAVLTreeAttr = 'tree',
gestaltAVLTreePresentBit = 0,
gestaltAVLTreeSupportsHandleBasedTreeBit = 1,
gestaltAVLTreeSupportsTreeLockingBit = 2
};
Bus Clock Version Selector
Specifies version information for the bus clock speed.
enum {
gestaltBusClkSpeed = 'bclk'
};
Carbon Version Selector
Specifies version information for Carbon.
enum {
gestaltCarbonVersion = 'cbon'
};
Classic Compatibility Attribute Selectors
Specify feature availability for the Classic environment.
enum {
gestaltMacOSCompatibilityBoxAttr = 'bbox',
gestaltMacOSCompatibilityBoxPresent = 0,
gestaltMacOSCompatibilityBoxHasSerial = 1,
gestaltMacOSCompatibilityBoxless = 2
};
CloseView Attribute Selectors
Specify feature availability information for CloseView.
enum {
gestaltCloseViewAttr = 'BSDa',
gestaltCloseViewEnabled = 0,
gestaltCloseViewDisplayMgrFriendly = 1
};
Code Fragment Manager Attribute Selectors
Specify feature availability information for the Code Fragment Manager.
enum {
gestaltCFMAttr = 'cfrg',
gestaltCFMPresent = 0,
gestaltCFMPresentMask = 0x0001,
gestaltCFM99Present = 2,
gestaltCFM99PresentMask = 0x0004
};
Collection Manager Version Selector
Specify version information for the Collection manager.
enum {
gestaltCollectionMgrVersion = 'cltn'
};
Constants
gestaltCollectionMgrVersionCollection Manager version.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Color Picker Version Selectors
Specify version information for the Color Picker.
enum {
gestaltColorPickerVersion = 'cpkr',
gestaltColorPicker = 'cpkr'
};
Discussion
To test for the availability and version of the Color Picker Manager, use the Gestalt function with the selector defined by this enumerator.
If the Gestalt function returns a value of 00000200, version 2.0 of the Color Picker Manager is available. If the Gestalt function returns a value of 00000100, version 1.0 (that is, the original Color Picker Package) is available.
ColorSync Manager Attribute Selectors
Specify feature availability information for the ColorSync Manager.
enum {
gestaltColorMatchingAttr = 'cmta',
gestaltHighLevelMatching = 0,
gestaltColorMatchingLibLoaded = 1
};
Constants
gestaltColorMatchingAttrThe selector for obtaining version information. Use when calling the
Gestaltfunction to check for particular ColorSync Manager features.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHighLevelMatchingThis constant is provided for backward compatibility only. Bit 0 of the
Gestaltresponse value is always set if ColorSync is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorMatchingLibLoadedThis constant is provided for backward compatibility only. Bit 1 of the
Gestaltresponse 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.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
These 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.
ColorSync Manager Version Selectors
Specify version information for the ColorSync Manager.
enum {
gestaltColorMatchingVersion = 'cmtc',
gestaltColorSync10 = 0x0100,
gestaltColorSync11 = 0x0110,
gestaltColorSync104 = 0x0104,
gestaltColorSync105 = 0x0105,
gestaltColorSync20 = 0x0200,
gestaltColorSync21 = 0x0210,
gestaltColorSync211 = 0x0211,
gestaltColorSync212 = 0x0212,
gestaltColorSync213 = 0x0213,
gestaltColorSync25 = 0x0250,
gestaltColorSync26 = 0x0260,
gestaltColorSync261 = 0x0261,
gestaltColorSync30 = 0x0300
};
Constants
gestaltColorMatchingVersionThe selector for obtaining version information. Use when calling the
Gestaltfunction to determine whether the ColorSync Manager is available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync10A
Gestaltresponse value ofgestaltColorSync10indicates version 1.0 of the ColorSync Manager is present. This version supports general purpose color matching only and does not provide QuickDraw-specific matching functions.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync11A
Gestaltresponse value ofgestaltColorSync11indicates version 1.0.3 of the ColorSync Manager is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync104AGestaltresponse value ofgestaltColorSync104indicates version 1.4 of the ColorSync Manager is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync105A
Gestaltresponse value ofgestaltColorSync105indicates version 1.5 of the ColorSync Manager is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync20A
Gestaltresponse value ofgestaltColorSync20indicates version 2.0 of the ColorSync Manager is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync21A
Gestaltresponse value ofgestaltColorSync21indicates version 2.1 of the ColorSync Manager is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync211Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync212Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync213Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync25A
Gestaltresponse value ofgestaltColorSync25indicates version 2.5 of the ColorSync Manager is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync26Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync261Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltColorSync30Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
These 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.
Communications Toolbox Version Selector
Specifies version information for the Communications Toolbox.
enum {
gestaltCTBVersion = 'ctbv'
};
Constants
gestaltCTBVersionThe version number of the Communications Toolbox (in the low-order word of the return value).
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Communication Resource Manager Attribute Selectors
Specify version and feature availability information for the Communications Resource Manager.
enum {
gestaltCRMAttr = 'crm ',
gestaltCRMPresent = 0,
gestaltCRMPersistentFix = 1,
gestaltCRMToolRsrcCalls = 2
};
Component Manager Version Selectors
Specify version information for the Component Manager.
enum {
gestaltComponentMgr = 'cpnt',
gestaltComponentPlatform = 'copl'
};
Constants
gestaltComponentMgrThe
Gestaltselector you pass to determine what version of the Component Manager is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
To determine the version of the current Component Manager, your application should pass the selector gestaltComponentMgr to the Gestalt function.
Computer Model Selectors
Specify computer models.
enum {
gestaltMachineType = 'mach',
gestaltClassic = 1,
gestaltMacXL = 2,
gestaltMac512KE = 3,
gestaltMacPlus = 4,
gestaltMacSE = 5,
gestaltMacII = 6,
gestaltMacIIx = 7,
gestaltMacIIcx = 8,
gestaltMacSE030 = 9,
gestaltPortable = 10,
gestaltMacIIci = 11,
gestaltPowerMac8100_120 = 12,
gestaltMacIIfx = 13,
gestaltMacClassic = 17,
gestaltMacIIsi = 18,
gestaltMacLC = 19,
gestaltMacQuadra900 = 20,
gestaltPowerBook170 = 21,
gestaltMacQuadra700 = 22,
gestaltClassicII = 23,
gestaltPowerBook100 = 24,
gestaltPowerBook140 = 25,
gestaltMacQuadra950 = 26,
gestaltMacLCIII = 27,
gestaltPerforma450 = gestaltMacLCIII,
gestaltPowerBookDuo210 = 29,
gestaltMacCentris650 = 30,
gestaltPowerBookDuo230 = 32,
gestaltPowerBook180 = 33,
gestaltPowerBook160 = 34,
gestaltMacQuadra800 = 35,
gestaltMacQuadra650 = 36,
gestaltMacLCII = 37,
gestaltPowerBookDuo250 = 38,
gestaltAWS9150_80 = 39,
gestaltPowerMac8100_110 = 40,
gestaltAWS8150_110 = gestaltPowerMac8100_110,
gestaltPowerMac5200 = 41,
gestaltPowerMac5260 = gestaltPowerMac5200,
gestaltPerforma5300 = gestaltPowerMac5200,
gestaltPowerMac6200 = 42,
gestaltPerforma6300 = gestaltPowerMac6200,
gestaltMacIIvi = 44,
gestaltMacIIvm = 45,
gestaltPerforma600 = gestaltMacIIvm,
gestaltPowerMac7100_80 = 47,
gestaltMacIIvx = 48,
gestaltMacColorClassic = 49,
gestaltPerforma250 = gestaltMacColorClassic,
gestaltPowerBook165c = 50,
gestaltMacCentris610 = 52,
gestaltMacQuadra610 = 53,
gestaltPowerBook145 = 54,
gestaltPowerMac8100_100 = 55,
gestaltMacLC520 = 56,
gestaltAWS9150_120 = 57,
gestaltPowerMac6400 = 58,
gestaltPerforma6400 = gestaltPowerMac6400,
gestaltPerforma6360 = gestaltPerforma6400,
gestaltMacCentris660AV = 60,
gestaltMacQuadra660AV = gestaltMacCentris660AV,
gestaltPerforma46x = 62,
gestaltPowerMac8100_80 = 65,
gestaltAWS8150_80 = gestaltPowerMac8100_80,
gestaltPowerMac9500 = 67,
gestaltPowerMac9600 = gestaltPowerMac9500,
gestaltPowerMac7500 = 68,
gestaltPowerMac7600 = gestaltPowerMac7500,
gestaltPowerMac8500 = 69,
gestaltPowerMac8600 = gestaltPowerMac8500,
gestaltAWS8550 = gestaltPowerMac7500,
gestaltPowerBook180c = 71,
gestaltPowerBook520 = 72,
gestaltPowerBook520c = gestaltPowerBook520,
gestaltPowerBook540 = gestaltPowerBook520,
gestaltPowerBook540c = gestaltPowerBook520,
gestaltPowerMac5400 = 74,
gestaltPowerMac6100_60 = 75,
gestaltAWS6150_60 = gestaltPowerMac6100_60,
gestaltPowerBookDuo270c = 77,
gestaltMacQuadra840AV = 78,
gestaltPerforma550 = 80,
gestaltPowerBook165 = 84,
gestaltPowerBook190 = 85,
gestaltMacTV = 88,
gestaltMacLC475 = 89,
gestaltPerforma47x = gestaltMacLC475,
gestaltMacLC575 = 92,
gestaltMacQuadra605 = 94,
gestaltMacQuadra630 = 98,
gestaltMacLC580 = 99,
gestaltPerforma580 = gestaltMacLC580,
gestaltPowerMac6100_66 = 100,
gestaltAWS6150_66 = gestaltPowerMac6100_66,
gestaltPowerBookDuo280 = 102,
gestaltPowerBookDuo280c = 103,
gestaltPowerMacLC475 = 104,
gestaltPowerMacPerforma47x = gestaltPowerMacLC475,
gestaltPowerMacLC575 = 105,
gestaltPowerMacPerforma57x = gestaltPowerMacLC575,
gestaltPowerMacQuadra630 = 106,
gestaltPowerMacLC630 = gestaltPowerMacQuadra630,
gestaltPowerMacPerforma63x = gestaltPowerMacQuadra630,
gestaltPowerMac7200 = 108,
gestaltPowerMac7300 = 109,
gestaltPowerMac7100_66 = 112,
gestaltPowerBook150 = 115,
gestaltPowerMacQuadra700 = 116,
gestaltPowerMacQuadra900 = 117,
gestaltPowerMacQuadra950 = 118,
gestaltPowerMacCentris610 = 119,
gestaltPowerMacCentris650 = 120,
gestaltPowerMacQuadra610 = 121,
gestaltPowerMacQuadra650 = 122,
gestaltPowerMacQuadra800 = 123,
gestaltPowerBookDuo2300 = 124,
gestaltPowerBook500PPCUpgrade = 126,
gestaltPowerBook5300 = 128,
gestaltPowerBook1400 = 310,
gestaltPowerBook3400 = 306,
gestaltPowerBook2400 = 307,
gestaltPowerBookG3Series = 312,
gestaltPowerBookG3 = 313,
gestaltPowerBookG3Series2 = 314,
gestaltPowerMacNewWorld = 406,
gestaltPowerMacG3 = 510,
gestaltPowerMac5500 = 512,
gestalt20thAnniversary = gestaltPowerMac5500,
gestaltPowerMac6500 = 513,
gestaltPowerMac4400_160 = 514,
gestaltPowerMac4400 = 515,
gestaltMacOSCompatibility = 1206
};
Discussion
To obtain a string containing the machine’s name, you can pass the returned value to the GetIndString procedure as an index into the resource of type 'STR#' in the System file having the resource ID defined by the constant kMachineNameStrID.
Computer Name Selector
Specifies user-visibility information for the computer name.
enum {
gestaltUserVisibleMachineName = 'mnam'
};
Connection Manager Attribute Selectors
Specify feature availability information for the Connection Manager.
enum {
gestaltConnMgrAttr = 'conn',
gestaltConnMgrPresent = 0,
gestaltConnMgrCMSearchFix = 1,
gestaltConnMgrErrorString = 2,
gestaltConnMgrMultiAsyncIO = 3
};
Constants
gestaltConnMgrAttrAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltConnMgrPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltConnMgrCMSearchFixThe
gestaltConnMgrCMSearchFixbit flag indicates that the fix is present that allows theCMAddSearchfunction to work over themAttnchannel.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltConnMgrErrorStringAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltConnMgrMultiAsyncIOAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Control Manager Attribute Selectors
Specify feature availability information for the Control Manager.
enum {
gestaltControlMgrAttr = 'cntl',
gestaltControlMgrPresent = (1L << 0),
gestaltControlMgrPresentBit = 0,
gestaltControlMsgPresentMask = (1L << gestaltControlMgrPresentBit)
};
Constants
gestaltControlMgrAttrThe
Gestaltselector passed to determine what features of the Control Manager are present. This selector is available with Mac OS 8.5 and later. TheGestaltfunction produces a 32-bit value whose bits you should test to determine what Control Manager functionality is available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltControlMgrPresentIf the bit specified by this mask is set, the Control Manager functionality for Appearance Manager 1.1 is available. This bit is set for Mac OS 8.5 and later.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltControlMgrPresentBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltControlMsgPresentMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any functions dependent upon the Control Manager, your application should pass the selector gestaltControlMgrAttr to the Gestalt function to determine which Control Manager functions are available.
Control Manager Version Selector
Specifies version information for the Control Manager.
enum {
gestaltControlMgrVersion = 'cmvr'
};
Constants
gestaltControlMgrVersionAvailable in OS X v10.1 and later.
Declared in
Gestalt.h.
Control Strip Attribute Selectors
Specify feature availability for the Control Strip.
enum {
gestaltControlStripAttr = 'sdev',
gestaltControlStripExists = 0,
gestaltControlStripVersionFixed = 1,
gestaltControlStripUserFont = 2,
gestaltControlStripUserHotKey = 3
};
Control Strip Version Selector
Specifies version information for the Control Strip.
enum {
gestaltControlStripVersion = 'csvr'
};
Constants
gestaltControlStripVersionAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
CPU Selectors for Apollo
Specify version information for Apollo CPUs.
enum {
gestaltCPUApollo = 0x0111,
gestaltCPU750FX = 0x0120
};
CPU Selectors for Intel and Pentium
Specify version information for Intel and Pentium CPUs.
enum {
gestaltCPU486 = 'i486',
gestaltCPUPentium = 'i586',
gestaltCPUPentiumPro = 'i5pr',
gestaltCPUPentiumII = 'i5ii',
gestaltCPUX86 = 'ixxx'
};
Data Access Manager Attribute Selectors
Specify feature availability information for the Data Access Manager.
enum {
gestaltDBAccessMgrAttr = 'dbac',
gestaltDBAccessMgrPresent = 0
};
Desktop Pictures Attribute Selectors
Specify feature availability information for Desktop Pictures.
enum {
gestaltDesktopPicturesAttr = 'dkpx',
gestaltDesktopPicturesInstalled = 0,
gestaltDesktopPicturesDisplayed = 1
};
Desktop Printing Attribute Selector
Specify feature availability information for all desktop printer.
enum {
gestaltDTPInfo = 'dtpx'
};
Desktop Printing Driver Attribute Selectors
Specify feature availability for third-party desktop printing drivers.
enum {
gestaltDTPFeatures = 'dtpf',
kDTPThirdPartySupported = 0x00000004
};
Dialog Manager Attribute Selectors
Specify feature availability for the Dialog Manager.
enum {
gestaltDITLExtAttr = 'ditl',
gestaltDITLExtPresent = 0,
gestaltDITLExtSupportsIctb = 1
};
Constants
gestaltDITLExtAttrAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDITLExtPresentIf this flag bit is
TRUE, then the Dialog Manager extensions included in System 7 are available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDITLExtSupportsIctbAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Dictionary Manager Attribute Selectors
Specify feature availability information for the Dictionary Manager.
enum {
gestaltDictionaryMgrAttr = 'dict',
gestaltDictionaryMgrPresent = 0
};
Dialog Manager Selectors for Mac OS 8.5
Specify version and feature availability information for the Dialog Manager in Mac OS 8.5.
enum {
gestaltDialogMgrAttr = 'dlog',
gestaltDialogMgrPresent = (1L << 0),
gestaltDialogMgrPresentBit = 0,
gestaltDialogMgrHasAquaAlertBit = 2,
gestaltDialogMgrPresentMask = (1L << gestaltDialogMgrPresentBit),
gestaltDialogMgrHasAquaAlertMask = (1L << gestaltDialogMgrHasAquaAlertBit),
gestaltDialogMsgPresentMask = gestaltDialogMgrPresentMask
};
Constants
gestaltDialogMgrAttrThe
Gestaltselector passed to determine what features of the Dialog Manager are present. This selector is available with Mac OS 8.5 and later. PassinggestaltDialogManagerAttrproduces a 32-bit value whose bits you should test to determine what Dialog Manager functionality is available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDialogMgrPresentIf the bit specified by this mask is set, the Dialog Manager functionality for Appearance Manager 1.1 is available. This bit is set for Mac OS 8.5 and later.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDialogMgrPresentBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDialogMgrHasAquaAlertBitAvailable in OS X v10.1 and later.
Declared in
Gestalt.h.gestaltDialogMgrPresentMaskAvailable in OS X v10.1 and later.
Declared in
Gestalt.h.gestaltDialogMgrHasAquaAlertMaskAvailable in OS X v10.1 and later.
Declared in
Gestalt.h.gestaltDialogMsgPresentMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any Dialog Manager functions, your application should pass the selector gestaltDialogManagerAttr to the Gestalt function to determine which Dialog Manager functions are available.
Digital Signature Version Selector
Specifies version information for digital signatures.
enum {
gestaltDigitalSignatureVersion = 'dsig'
};
Direct IO Attribute Selector
Specifies availability of direct input/output support by the file system.
enum {
gestaltFSSupportsDirectIO = 11
};
Disk Cache Size Selector
Specifies size information for the disk cache buffer.
enum {
gestaltDiskCacheSize = 'dcsz'
};
Constants
gestaltDiskCacheSizeA selector that you pass to the
Gestaltfunction. If the function returnsnoErr, theresponseparameter contains the size of the disk cache’s buffer. See the Gestalt Manager Reference for more information on theGestaltfunction.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Display Manager Attribute Selectors
Specify feature availability for the Display Manager.
enum {
gestaltDisplayMgrAttr = 'dply',
gestaltDisplayMgrPresent = 0,
gestaltDisplayMgrCanSwitchMirrored = 2,
gestaltDisplayMgrSetDepthNotifies = 3,
gestaltDisplayMgrCanConfirm = 4,
gestaltDisplayMgrColorSyncAware = 5,
gestaltDisplayMgrGeneratesProfiles = 6,
gestaltDisplayMgrSleepNotifies = 7
};
Constants
gestaltDisplayMgrAttrThe
Gestaltselector you pass to determine which Display Manager attributes are present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDisplayMgrPresentIf
true, the Display Manager is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDisplayMgrCanSwitchMirroredIf
true, the Display Manager can switch modes on mirrored displays.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDisplayMgrSetDepthNotifiesIf
true, and you have registered for notification and you will be notified of depth mode changes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDisplayMgrCanConfirmNot yet supported. Most commonly comes up for display modes that are not marked
kModeSafe. There is currently no system support for trying an unsafe mode and then restoring if the user does not confirm. When this is supported, this bit will be set.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDisplayMgrColorSyncAwareIf
true, Display Manager supports profiles for displays.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDisplayMgrGeneratesProfilesAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDisplayMgrSleepNotifiesAvailable in OS X v10.2 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent upon the Display Manager, your application should pass the selector gestaltDisplayMgrAttr to the Gestalt function to determine the Display Manager attributes that are present.
Display Manager Version Selector
Specifies version information for the Display Manager.
enum {
gestaltDisplayMgrVers = 'dplv'
};
Constants
gestaltDisplayMgrVersThe
Gestaltselector you pass to determine what version of the Display Manager is present. For example, a Gestalt result may be 0x00020500, which means that the Display Manager version 2.5 is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
To determine the version of the current Display Manager, your application should pass the selector gestaltDisplayMgrVers to the Gestalt function.
Drag Manager Attribute Selectors
Specify feature availability information for the Drag Manager.
enum {
gestaltDragMgrAttr = 'drag',
gestaltDragMgrPresent = 0,
gestaltDragMgrFloatingWind = 1,
gestaltPPCDragLibPresent = 2,
gestaltDragMgrHasImageSupport = 3,
gestaltCanStartDragInFloatWindow = 4,
gestaltSetDragImageUpdates = 5
};
Constants
gestaltDragMgrAttrThe Gestalt selector passed to determine what features of the Drag Manager are present. Passing the
gestaltDragMgrAttrconstant produces a 32-bit value whose bits you should test to determine what Drag Manager functionality is available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDragMgrPresentIf the bit specified by this mask is set, the Drag Manager functions are available.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDragMgrFloatingWindIf the bit specified by this mask is set, the Drag Manager floating window support functions are available.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCDragLibPresentIf the bit specified by this mask is set, the Drag Manager PPC Drag Library functions are available.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDragMgrHasImageSupportIf the bit specified by this mask is set, the Drag Manager image support functions are available.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCanStartDragInFloatWindowIf the bit specified by this mask is set, the Drag Manager can start a drag in a floating window.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSetDragImageUpdatesAvailable in OS X v10.1 and later.
Declared in
Gestalt.h.
Draw Sprocket Version Selectors
Specifies version information for Draw Sprocket.
enum {
gestaltDrawSprocketVersion = 'dspv'
};
Easy Access Selectors
Specify version and feature availability information for Easy Access.
enum {
gestaltEasyAccessAttr = 'easy',
gestaltEasyAccessOff = 0,
gestaltEasyAccessOn = 1,
gestaltEasyAccessSticky = 2,
gestaltEasyAccessLocked = 3
};
Edition Manager Attribute Selectors
Specify feature availability for the Edition Manager.
enum {
gestaltEditionMgrAttr = 'edtn',
gestaltEditionMgrPresent = 0,
gestaltEditionMgrTranslationAware = 1
};
Extension Table Version Selector
Specifies version information for the extension table.
enum {
gestaltExtensionTableVersion = 'etbl'
};
File Mapping Attribute Selectors
Specify feature availability for file mapping.
enum {
gestaltFileMappingAttr = 'flmp',
gestaltFileMappingPresent = 0,
gestaltFileMappingMultipleFilesFix = 1
};
File System Attribute Selectors
Specify feature availability for the file system.
enum {
gestaltFSAttr = 'fs ',
gestaltFullExtFSDispatching = 0,
gestaltHasFSSpecCalls = 1,
gestaltHasFileSystemManager = 2,
gestaltFSMDoesDynamicLoad = 3,
gestaltFSSupports4GBVols = 4,
gestaltFSSupports2TBVols = 5,
gestaltHasExtendedDiskInit = 6,
gestaltDTMgrSupportsFSM = 7,
gestaltFSNoMFSVols = 8,
gestaltFSSupportsHFSPlusVols = 9,
gestaltFSIncompatibleDFA82 = 10
};
Constants
gestaltFSAttrA selector you pass to the
Gestaltfunction. If the Gestalt function returnsnoErr, theresponseparameter contains a 32-bit value specifying the features of the file system.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFullExtFSDispatchingIf this bit is set in the
responseparameter, all of the functions selected through the_HFSDispatchtrap are available to external file systems. If this bit is clear, the File Manager checks the selector passed to_HFSDispatchand ensures that it is valid; if the selector is invalid, the result codeparamErris returned to the caller. If this bit is set, no such validity checking is performed. See the Guide to the File System Manager for more information on external file systems.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasFSSpecCallsIf this bit is set in the
responseparameter, the operating environment provides the file system specification (FSSpec) versions of the basic file-manipulation functions, as well as theFSMakeFSSpecfunction.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasFileSystemManagerIf this bit is set in the
responseparameter, the File System Manager is present. See the Guide to the File System Manager for more information about the File System Manager.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFSMDoesDynamicLoadIf this bit is set in the
responseparameter, the File System Manager supports dynamic loading of external file system code resources.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFSSupports4GBVolsIf this bit is set in the
responseparameter, the file system supports 4 gigabyte volumes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFSSupports2TBVolsIf this bit is set in the
responseparameter, the file system supports 2 terabyte volumes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasExtendedDiskInitIf this bit is set in the
responseparameter, the extended Disk Initialization Package functions are present. These are theDIXFormat,DIXZero, orDIReformatfunctions. See the Guide to the File System Manager for more information about the Disk Initialization Package interfaces.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDTMgrSupportsFSMIf this bit is set in the
responseparameter, the desktop database supports File System Manager-based foreign file systems.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFSNoMFSVolsIf this bit is set in the
responseparameter, the file system does not support MFS volumes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFSSupportsHFSPlusVolsIf this bit is set in the
responseparameter, the file system supports HFS Plus volumes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFSIncompatibleDFA82If this bit is set in the
responseparameter, VCB and FCB structures are changed; DFA 8.2 is incompatible.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
File System Attribute Selectors for Mac OS 9
Specify feature availability for the file system for features introduced in Mac OS 9.
enum {
gestaltHasHFSPlusAPIs = 12,
gestaltMustUseFCBAccessors = 13,
gestaltFSUsesPOSIXPathsForConversion = 14,
gestaltFSSupportsExclusiveLocks = 15,
gestaltFSSupportsHardLinkDetection = 16
};
Constants
gestaltHasHFSPlusAPIsIf this bit is set in the
responseparameter, the File Manager supports the HFS Plus APIs. Individual file systems may or may not implement the HFS Plus APIs. However, if this bit is set, the File Manager will emulate the HFS Plus APIs for file systems that do not implement them. Call the functionsPBHGetVolParmsSyncorPBHGetVolParmsAsyncto determine whether the HFS Plus APIs are directly supported on a given volume.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMustUseFCBAccessorsIf this bit is set in the
responseparameter, the File Manager no longer supports the low memory globalsFCBSPtrandFSFCBLen. All access to file or fork control blocks must use the File System Manager utility functions instead.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFSUsesPOSIXPathsForConversionAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFSSupportsExclusiveLocksAvailable in OS X v10.2 and later.
Declared in
Gestalt.h.gestaltFSSupportsHardLinkDetectionAvailable in OS X v10.2 and later.
Declared in
Gestalt.h.
Discussion
Use these constants with the gestalt selector gestaltFSAttr, described in “File System Attribute Selectors.”
File System Manager Version Selector
Specifies version information for the File System Manager.
enum {
gestaltFSMVersion = 'fsm '
};
Constants
gestaltFSMVersionPass this selector to the
Gestaltfunction to determine the version of the HFS External File Systems Manager (FSM).Available in OS X v10.0 and later.
Declared in
Gestalt.h.
File System Transport Manager Attribute Selectors
Specify feature availability for the File System Transport Manager
enum {
gestaltFXfrMgrAttr = 'fxfr',
gestaltFXfrMgrPresent = 0,
gestaltFXfrMgrMultiFile = 1,
gestaltFXfrMgrErrorString = 2,
gestaltFXfrMgrAsync = 3
};
Constants
gestaltFXfrMgrAttrThe selector you pass to the
Gestaltfunction to determine the File Transfer Manager attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Find By Content State Selectors
Specify state information for Find By Content.
enum {
gestaltFBCIndexingState = 'fbci',
gestaltFBCindexingSafe = 0,
gestaltFBCindexingCritical = 1
};
Find By Content Version Selectors
Specify version information for Find By Content.
enum {
gestaltFBCVersion = 'fbcv',
gestaltFBCCurrentVersion = 0x0011,
gestaltOSXFBCCurrentVersion = 0x0100
};
Find Folder Redirection Attribute Selector
Specifies feature availability information for Find Folder.
enum {
gestaltFindFolderRedirectionAttr = 'fole'
};
Finder Attribute Selectors
Specify feature availability for the Finder.
enum {
gestaltFinderAttr = 'fndr',
gestaltFinderDropEvent = 0,
gestaltFinderMagicPlacement = 1,
gestaltFinderCallsAEProcess = 2,
gestaltOSLCompliantFinder = 3,
gestaltFinderSupports4GBVolumes = 4,
gestaltFinderHasClippings = 6,
gestaltFinderFullDragManagerSupport = 7,
gestaltFinderFloppyRootComments = 8,
gestaltFinderLargeAndNotSavedFlavorsOK = 9,
gestaltFinderUsesExtensibleFolderManager = 10,
gestaltFinderUnderstandsRedirectedDesktopFolder = 11
};
Floppy Driver Attribute Selectors
Specify feature availability information for the floppy disk drive.
enum {
gestaltFloppyAttr = 'flpy',
gestaltFloppyIsMFMOnly = 0,
gestaltFloppyIsManualEject = 1,
gestaltFloppyUsesDiskInPlace = 2
};
Font Manager Attribute Selectors
Specify feature availability information for the Font Manager.
enum {
gestaltFontMgrAttr = 'font',
gestaltOutlineFonts = 0
};
Constants
gestaltFontMgrAttrThe
Gestaltselector you pass to determine which Font Manager attributes are present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltOutlineFontsIf
true, outline fonts are supported.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent upon the Font Manager, your application should pass the selector gestaltDisplayMgrAttr to the Gestalt function to determine the Font Manager attributes that are present.
Folder Manager Attribute Selectors
Specify feature availability information for the Folder Manager.
enum {
gestaltFindFolderAttr = 'fold',
gestaltFindFolderPresent = 0,
gestaltFolderDescSupport = 1,
gestaltFolderMgrFollowsAliasesWhenResolving = 2,
gestaltFolderMgrSupportsExtendedCalls = 3,
gestaltFolderMgrSupportsDomains = 4,
gestaltFolderMgrSupportsFSCalls = 5
};
Constants
gestaltFindFolderAttrThe selector you pass to the
Gestaltfunction to determine theFindFolderfunction attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFindFolderPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFolderDescSupportIf this bit is set, the extended Folder Manager functionality supporting folder descriptors and routings is available. This bit is set for versions of the Mac OS starting with Mac OS 8.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFolderMgrFollowsAliasesWhenResolvingAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFolderMgrSupportsExtendedCallsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFolderMgrSupportsDomainsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFolderMgrSupportsFSCallsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any Folder Manager functions, your application should pass the selector gestaltFindFolderAttr to the Gestalt function to determine which Folder Manager functions are available.
FPU Type Selectors
Specify version and availability information for the type of floating-point unit installed.
enum {
gestaltFPUType = 'fpu ',
gestaltNoFPU = 0,
gestalt68881 = 1,
gestalt68882 = 2,
gestalt68040FPU = 3
};
Constants
gestaltFPUTypeA constant that represents the type of floating-point unit currently installed, if any.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltNoFPUAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68881Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68882Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68040FPUAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Gestalt Manager Version Selectors
Specify Gestalt Manager version information.
enum {
gestaltVersion = 'vers',
gestaltValueImplementedVers = 5
};
Constants
gestaltVersionThe selector you pass to the function
Gestaltto determine the version of the Gestalt Manager. The function passes back the version in the low-order word of the response.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltValueImplementedVersThe first version of the Gestalt Manager that implements this selector.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Hardware Attribute Attribute Selectors
Specify feature availability information for hardware.
enum {
gestaltHardwareAttr = 'hdwr',
gestaltHasVIA1 = 0,
gestaltHasVIA2 = 1,
gestaltHasASC = 3,
gestaltHasSCC = 4,
gestaltHasSCSI = 7,
gestaltHasSoftPowerOff = 19,
gestaltHasSCSI961 = 21,
gestaltHasSCSI962 = 22,
gestaltHasUniversalROM = 24,
gestaltHasEnhancedLtalk = 30
};
Constants
gestaltHardwareAttrThe selector you pass to the Gestalt function to determine low-level hardware configuration attributes.
Never infer the existence of certain hardware or software features from the responses that
Gestaltreturns when you pass it this selector.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasVIA1Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasVIA2Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasASCAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasSCCThe
gestaltHasSCCbit is normally returned as 0 on the Macintosh IIfx and Macintosh Quadra 900 computers, which have intelligent I/O processors that isolate the hardware and make direct access to the SCC impossible. However, if the user has used the Compatibility Switch control panel to enable compatibility mode,gestaltHasSCCis set.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasSCSIThe
gestaltHasSCSIbit means the machine is equipped with a SCSI implementation based on the 53C80 chip, which was introduced in the Macintosh Plus. This bit is 0 on computers with a different SCSI implementation.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasSoftPowerOffAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasSCSI961This bit is set if the machine has a SCSI implementation based on the 53C96 chip installed on an internal bus.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasSCSI962This bit is set if the machine has a SCSI implementation based on the 53C96 chip installed on an external bus.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasUniversalROMAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasEnhancedLtalkAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Hardware Icon Selector
Specifies icon family resource ID information for the computer hardware.
enum {
gestaltMachineIcon = 'micn'
};
Constants
gestaltMachineIconThe selector you pass to the
Gestaltfunction to determine the icon family resource ID for the current type of Macintosh.Never infer the existence of certain hardware or software features from the responses that
Gestaltreturns when you pass it this selector.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Hardware Vendor Selectors
Specify hardware vendor information.
enum {
gestaltHardwareVendorCode = 'hrad',
gestaltHardwareVendorApple = 'Appl'
};
Help Manager Attribute Selectors
Specify feature availability for the Apple Help Manager.
enum {
gestaltHelpMgrAttr = 'help',
gestaltHelpMgrPresent = 0,
gestaltHelpMgrExtensions = 1,
gestaltAppleGuideIsDebug = 30,
gestaltAppleGuidePresent = 31
};
Constants
gestaltHelpMgrAttrThe selector you pass to the
Gestaltfunction to determine the Help Manager attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHelpMgrPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHelpMgrExtensionsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAppleGuideIsDebugAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAppleGuidePresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Icon Services Attribute Selectors
Specify feature availability for Icon Services.
enum {
gestaltIconUtilitiesAttr = 'icon',
gestaltIconUtilitiesPresent = 0,
gestaltIconUtilitiesHas48PixelIcons = 1,
gestaltIconUtilitiesHas32BitIcons = 2,
gestaltIconUtilitiesHas8BitDeepMasks = 3,
gestaltIconUtilitiesHasIconServices = 4
};
Constants
gestaltIconUtilitiesAttrThe
Gestaltselector passed to determine which features of Icon Services are present. TheGestaltfunction produces a 32-bit value whose bits you should test to determine which Icon Services features are available.Note: available in System 7.0, despite gestalt.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltIconUtilitiesPresentTrue if icon utilities are present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltIconUtilitiesHas48PixelIconsTrue if 48x48 icons are supported by IconUtilities.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltIconUtilitiesHas32BitIconsTrue if 32-bit deep icons are supported.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltIconUtilitiesHas8BitDeepMasksTrue if 8-bit deep masks are supported.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltIconUtilitiesHasIconServicesTrue if IconServices is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any Icon Services functions, your application should pass the selector gestaltIconUtilitiesAttr to the Gestalt function.
Image Compression Manager Version Selector
Specifies the version of the Image Compression Manager.
enum {
gestaltCompressionMgr = 'icmp'
};
Constants
gestaltCompressionMgrAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Intel Architecture Selector
Specifies the Intel architecture.
enum {
gestaltIntel = 10
};
Internal Display Location Selector
Specifies the slot number information for the internal display location.
enum {
gestaltInternalDisplay = 'idsp'
};
Keyboard Selectors
Specify keyboard information.
enum {
gestaltKeyboardType = 'kbd ',
gestaltMacKbd = 1,
gestaltMacAndPad = 2,
gestaltMacPlusKbd = 3,
gestaltExtADBKbd = 4,
gestaltStdADBKbd = 5,
gestaltPrtblADBKbd = 6,
gestaltPrtblISOKbd = 7,
gestaltStdISOADBKbd = 8,
gestaltExtISOADBKbd = 9,
gestaltADBKbdII = 10,
gestaltADBISOKbdII = 11,
gestaltPwrBookADBKbd = 12,
gestaltPwrBookISOADBKbd = 13,
gestaltAppleAdjustKeypad = 14,
gestaltAppleAdjustADBKbd = 15,
gestaltAppleAdjustISOKbd = 16,
gestaltJapanAdjustADBKbd = 17,
gestaltPwrBkExtISOKbd = 20,
gestaltPwrBkExtJISKbd = 21,
gestaltPwrBkExtADBKbd = 24,
gestaltPS2Keyboard = 27,
gestaltPwrBkSubDomKbd = 28,
gestaltPwrBkSubISOKbd = 29,
gestaltPwrBkSubJISKbd = 30,
gestaltPwrBkEKDomKbd = 195,
gestaltPwrBkEKISOKbd = 196,
gestaltPwrBkEKJISKbd = 197,
gestaltUSBCosmoANSIKbd = 198,
gestaltUSBCosmoISOKbd = 199,
gestaltUSBCosmoJISKbd = 200,
gestaltPwrBk99JISKbd = 201,
gestaltUSBAndyANSIKbd = 204,
gestaltUSBAndyISOKbd = 205,
gestaltUSBAndyJISKbd = 206
};
Constants
gestaltKeyboardTypeThe selector you pass to the
Gestaltfunction to determine the type of the keyboard.If the Apple Desktop Bus (ADB) is in use, there may be multiple keyboards or other ADB devices attached to the machine. The
gestaltKeyboardTypeselector identifies only the type of the keyboard on which the last keystroke occurred.You cannot use this selector to find out what ADB devices are connected. For that, you can use the Apple Desktop Bus Manager. Note that the ADB keyboard types described by
Gestaltdo not necessarily map directly to ADB device handler IDs.Future support for the
gestaltKeyboardTypeselector is not guaranteed. To determine the type of the keyboard last touched without usingGestalt, check the system global variableKbdType.If the Gestalt Manager does not recognize the keyboard type, it returns an error.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Keyboard Selectors for Laptops
Specify laptop keyboard information.
enum {
gestaltPortable2001ANSIKbd = 202,
gestaltPortable2001ISOKbd = 203,
gestaltPortable2001JISKbd = 207
};
Logical Page Size Selector
Specifies logical page size information.
enum {
gestaltLogicalPageSize = 'pgsz'
};
Constants
gestaltLogicalPageSizeThe logical page size. This value is defined only on machines with the MC68010, MC68020, MC68030, or MC68040 microprocessors. On a machine with the MC68000, the
Gestaltfunction returns an error when called with this selector.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Logical RAM Size Selector
Specifies logical random-access memory size information.
enum {
gestaltLogicalRAMSize = 'lram'
};
Constants
gestaltLogicalRAMSizeThe amount of logical memory available. This value is the same as that returned by
gestaltPhysicalRAMSizewhen virtual memory is not installed. On some machines, however, this value might be less than the value returned bygestaltPhysicalRAMSizebecause some RAM may be used by the video display and the Operating System.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Low Memory Size Selector
Specifies information about the size of the low-memory area.
enum {
gestaltLowMemorySize = 'lmem'
};
Constants
gestaltLowMemorySizeThe size (in bytes) of the low-memory area. The low-memory area is used for vectors, global variables, and dispatch tables
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Machine Name String ID
Defines a machine name string ID.
enum {
kMachineNameStrID = -16395
};
Mailer Version Selector
Specifies version information for the OCE standard mailer.
enum {
gestaltSMPMailerVersion = 'malr'
};
Mailer Send LetterVersion Selector
Specifies version information for the OCE standard mailer’s send letter.
enum {
gestaltSMPSPSendLetterVersion = 'spsl'
};
Media Bay Selectors
Specify information about media bay availability.
enum {
gestaltMediaBay = 'mbeh',
gestaltMBLegacy = 0,
gestaltMBSingleBay = 1,
gestaltMBMultipleBays = 2
};
Memory Attribute Selectors
Specify feature availability information for memory.
enum {
gestaltOSAttr = 'os ',
gestaltSysZoneGrowable = 0,
gestaltLaunchCanReturn = 1,
gestaltLaunchFullFileSpec = 2,
gestaltLaunchControl = 3,
gestaltTempMemSupport = 4,
gestaltRealTempMemory = 5,
gestaltTempMemTracked = 6,
gestaltIPCSupport = 7,
gestaltSysDebuggerSupport = 8,
gestaltNativeProcessMgrBit = 19,
gestaltAltivecRegistersSwappedCorrectlyBit = 20
};
Constants
gestaltOSAttrThe
Gestaltselector you pass to determine general Operating System attributes, such as whether temporary memory handles are real handles. The low-order bits of the response parameter are interpreted as bit flags. A flag is set to 1 to indicate that the corresponding feature is available. Currently, the following bits are significant.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSysZoneGrowableAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltLaunchCanReturnIf this bit is set, the
_Launchtrap macro can return to the caller. The_Launchtrap macro in system software version 7.0 (and in earlier versions running MultiFinder) gives your application the option to continue running after it launches another application. In earlier versions of system software not running MultiFinder, the_Launchtrap macro forces the launching application to quit.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltLaunchFullFileSpecIf this bit is set, the
launchControlFlagsfield supports control flags in addition to thelaunchContinueflag, and if the_Launchtrap can process thelaunchAppSpec,launchProcessSN,launchPreferredSize,launchMinimumSize,launchAvailableSize, andlaunchAppParametersfields in the launch parameter block.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltLaunchControlIf this bit is set, the Process Manager is available.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTempMemSupportIf
true, there is temporary memory support.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltRealTempMemoryIf
true, temporary memory handles are real.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTempMemTrackedIf
true, temporary memory handles are tracked.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltIPCSupportAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSysDebuggerSupportAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltNativeProcessMgrBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAltivecRegistersSwappedCorrectlyBitAvailable in OS X v10.2 and later.
Declared in
Gestalt.h.
Memory Mapping Attribute Selectors
Specify feature availability information for memory mapping.
enum {
gestaltMemoryMapAttr = 'mmap',
gestaltMemoryMapSparse = 0
};
Menu Manager Selectors in Mac OS 8.5
Specify version and feature availability information for the Menu Manager in Mac OS 8.5
enum {
gestaltMenuMgrAttr = 'menu',
gestaltMenuMgrPresent = (1L << 0),
gestaltMenuMgrPresentBit = 0,
gestaltMenuMgrAquaLayoutBit = 1,
gestaltMenuMgrMultipleItemsWithCommandIDBit = 2,
gestaltMenuMgrRetainsIconRefBit = 3,
gestaltMenuMgrSendsMenuBoundsToDefProcBit = 4,
gestaltMenuMgrMoreThanFiveMenusDeepBit = 5,
gestaltMenuMgrPresentMask = (1L << gestaltMenuMgrPresentBit),
gestaltMenuMgrAquaLayoutMask = (1L << gestaltMenuMgrAquaLayoutBit),
gestaltMenuMgrMultipleItemsWithCommandIDMask = (1L << gestaltMenuMgrMultipleItemsWithCommandIDBit),
gestaltMenuMgrRetainsIconRefMask = (1L << gestaltMenuMgrRetainsIconRefBit),
gestaltMenuMgrSendsMenuBoundsToDefProcMask = (1L << gestaltMenuMgrSendsMenuBoundsToDefProcBit),
gestaltMenuMgrMoreThanFiveMenusDeepMask = (1L << gestaltMenuMgrMoreThanFiveMenusDeepBit)
};
Constants
gestaltMenuMgrAttrThe
Gestaltselector passed to determine what features of the Menu Manager are present. This selector is available with Mac OS 8.5 and later. PassinggestaltMenuMgrAttrproduces a 32-bit value whose bits you should test to determine what Menu Manager functionality is available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrPresentIf the bit specified by this mask is set, the Menu Manager functionality for Appearance Manager 1.1 is available. This bit is set for Mac OS 8.5 and later.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrPresentBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrAquaLayoutBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrMultipleItemsWithCommandIDBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrRetainsIconRefBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrSendsMenuBoundsToDefProcBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrMoreThanFiveMenusDeepBitAvailable in OS X v10.2 and later.
Declared in
Gestalt.h.gestaltMenuMgrPresentMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrAquaLayoutMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrMultipleItemsWithCommandIDMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrRetainsIconRefMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrSendsMenuBoundsToDefProcMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMenuMgrMoreThanFiveMenusDeepMaskAvailable in OS X v10.2 and later.
Declared in
Gestalt.h.
Discussion
Before calling any Menu Manager functions, your application should pass the selector gestaltMenuMgrAttr to the Gestalt function to determine which Menu Manager functions are available.
Message Manager Version Selector
Specify version information for the Message Manager.
enum {
gestaltMessageMgrVersion = 'mess'
};
Miscellaneous Attribute Selectors
Specify feature availability information for miscellaneous pieces of the operating system or the hardware configuration.
enum {
gestaltMiscAttr = 'misc',
gestaltScrollingThrottle = 0,
gestaltSquareMenuBar = 2
};
Constants
gestaltMiscAttrThe selector you pass to the
Gestaltfunction to determine information about miscellaneous pieces of the Operating System or hardware configuration.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltScrollingThrottleAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSquareMenuBarAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Mixed Mode Manager Selectors
Specify version and feature availability information for the Mixed Mode Manager.
enum {
gestaltMixedModeAttr = 'mixd',
gestaltMixedModePowerPC = 0,
gestaltPowerPCAware = 0,
gestaltMixedModeCFM68K = 1,
gestaltMixedModeCFM68KHasTrap = 2,
gestaltMixedModeCFM68KHasState = 3
};
Constants
gestaltMixedModeAttrThe Gestalt selector you pass to determine what version of Mixed Mode Manager is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMixedModePowerPCTrue if Mixed Mode supports PowerPC ABI calling conventions
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPowerPCAwareOld name for
gestaltMixedModePowerPCAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMixedModeCFM68KTrue if Mixed Mode supports CFM-68K calling conventions
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMixedModeCFM68KHasTrapTrue if CFM-68K Mixed Mode implements
_MixedModeDispatch(versions 1.0.1 and prior did not)Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMixedModeCFM68KHasStateTrue if CFM-68K Mixed Mode exports Save/RestoreMixedModeState
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent upon Mixed Mode Manager, your application should pass the selector gestaltMixedModeAttr to the Gestalt function to determine the Mixed Mode Manager attributes that are present.
Mixed Mode Manager Version Selector
Specifies version information for the Mixed Mode Manager.
enum {
gestaltMixedModeVersion = 'mixd'
};
Constants
gestaltMixedModeVersionThe selector you pass to the
Gestaltfunction to determine the version of Mixed Mode Manager.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
MMU Type Selectors
Specify information about the type of MMU installed.
enum {
gestaltMMUType = 'mmu ',
gestaltNoMMU = 0,
gestaltAMU = 1,
gestalt68851 = 2,
gestalt68030MMU = 3,
gestalt68040MMU = 4,
gestaltEMMU1 = 5
};
Constants
gestaltMMUTypeThe selector you pass to the
Gestaltfunction to determine the type of MMU currently installed.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltNoMMUAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAMUAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68851Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68030MMUAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68040MMUAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltEMMU1Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Multiple Users State Selector
Specifies information about the multiple user state.
enum {
gestaltMultipleUsersState = 'mfdr'
};
Name-Binding Protocol Attribute Selectors
Specify feature availability information for the standard name-binding protocol.
enum {
gestaltStdNBPAttr = 'nlup',
gestaltStdNBPPresent = 0,
gestaltStdNBPSupportsAutoPosition = 1
};
Constants
gestaltStdNBPAttrThe selector you pass to the
Gestaltfunction to determine information about the StandardNBP (Name-Binding Protocol) function.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStdNBPPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStdNBPSupportsAutoPositionAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Name Registry Version Selector
Specifies the version of the name registry.
enum {
gestaltNameRegistryVersion = 'nreg'
};
Constants
gestaltNameRegistryVersionAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Native CPU Selectors
Specify the native CPU type or family.
enum {
gestaltNativeCPUtype = 'cput',
gestaltNativeCPUfamily = 'cpuf',
gestaltCPU68000 = 0,
gestaltCPU68010 = 1,
gestaltCPU68020 = 2,
gestaltCPU68030 = 3,
gestaltCPU68040 = 4,
gestaltCPU601 = 0x0101,
gestaltCPU603 = 0x0103,
gestaltCPU604 = 0x0104,
gestaltCPU603e = 0x0106,
gestaltCPU603ev = 0x0107,
gestaltCPU750 = 0x0108,
gestaltCPU604e = 0x0109,
gestaltCPU604ev = 0x010A,
gestaltCPUG4 = 0x010C,
gestaltCPUG47450 = 0x0110
};
Constants
gestaltNativeCPUtypeThe selector you pass to the
Gestaltfunction to determine the native CPU type.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltNativeCPUfamilyAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU68000Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU68010Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU68020Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU68030Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU68040Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU601Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU603Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU604Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU603eAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU603evAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU750Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU604eAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPU604evAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPUG4Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCPUG47450Available in OS X v10.2 and later.
Declared in
Gestalt.h.
Discussion
The use of these selectors is no longer recommended. You can use the gestaltSysArchitecture selector to determine whether your application is running on a PowerPC or Intel-based Macintosh. If you are trying to determine whether you can use a particular processor feature, you should check directly for that feature using a BSD library function such as sysctl or sysctlbyname. For more information, see OS X Man Pages.
Notification Manager Attribute Selectors
Specify feature availability information for the Notification Manager.
enum {
gestaltNotificationMgrAttr = 'nmgr',
gestaltNotificationPresent = 0
};
Constants
gestaltNotificationMgrAttr.The Gestalt selector which you pass to the
Gestaltfunction to determine Notification Manager attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltNotificationPresentTrue if the Notification Manager exists.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
NuBus Location Selector
Specifies information about the NuBus slot connector locations.
enum {
gestaltNuBusConnectors = 'sltc'
};
Constants
gestaltNuBusConnectorsA bitmap that describes the NuBus slot connector locations. On a Macintosh II, for example, the return value would have bits 9 through 14 set, indicating that 6 NuBus slots are present, at locations 9 through 14.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
NuBus Slot Count Selector
Specifies information about the number of NuBus slots.
enum {
gestaltNuBusSlotCount = 'nubs'
};
OCE Toolbox Attribute Selectors
Specify feature availability for the OCE Toolbox.
enum {
gestaltOCEToolboxAttr = 'oceu',
gestaltOCETBPresent = 0x01,
gestaltOCETBAvailable = 0x02,
gestaltOCESFServerAvailable = 0x04,
gestaltOCETBNativeGlueAvailable = 0x10
};
OCE Toolbox Version Selectors
Specify version information for the OCE Toolbox.
enum {
gestaltOCEToolboxVersion = 'ocet',
gestaltOCETB = 0x0102,
gestaltSFServer = 0x0100
};
Open Firmware Selector
Specifies version information for Open Firmware.
enum {
gestaltOpenFirmwareInfo = 'opfw'
};
Open Firmware Safe Selectors
Specify feature availability for Open Firmware safe features.
enum {
gestaltSafeOFAttr = 'safe',
gestaltVMZerosPagesBit = 0,
gestaltInitHeapZerosOutHeapsBit = 1,
gestaltNewHandleReturnsZeroedMemoryBit = 2,
gestaltNewPtrReturnsZeroedMemoryBit = 3,
gestaltFileAllocationZeroedBlocksBit = 4
};
Open Transport Selectors
Specify version and feature availability information for Open Transport.
enum {
gestaltOpenTpt = 'otan',
gestaltOpenTptPresentMask = 0x00000001,
gestaltOpenTptLoadedMask = 0x00000002,
gestaltOpenTptAppleTalkPresentMask = 0x00000004,
gestaltOpenTptAppleTalkLoadedMask = 0x00000008,
gestaltOpenTptTCPPresentMask = 0x00000010,
gestaltOpenTptTCPLoadedMask = 0x00000020,
gestaltOpenTptIPXSPXPresentMask = 0x00000040,
gestaltOpenTptIPXSPXLoadedMask = 0x00000080,
gestaltOpenTptPresentBit = 0,
gestaltOpenTptLoadedBit = 1,
gestaltOpenTptAppleTalkPresentBit = 2,
gestaltOpenTptAppleTalkLoadedBit = 3,
gestaltOpenTptTCPPresentBit = 4,
gestaltOpenTptTCPLoadedBit = 5,
gestaltOpenTptIPXSPXPresentBit = 6,
gestaltOpenTptIPXSPXLoadedBit = 7
};
Open Transport Network Setup Selectors
Specify feature availability and setup information for Open Transport networking.
enum {
gestaltOpenTptNetworkSetup = 'otcf',
gestaltOpenTptNetworkSetupLegacyImport = 0,
gestaltOpenTptNetworkSetupLegacyExport = 1,
gestaltOpenTptNetworkSetupSupportsMultihoming = 2
};
Open Transport Network Version Selector
Specifies the version of the Open Transport network setup.
enum {
gestaltOpenTptNetworkSetupVersion = 'otcv'
};
Open Transport Remote Access Selectors
Specify feature availability for Open Transport remote access.
enum {
gestaltOpenTptRemoteAccess = 'otra',
gestaltOpenTptRemoteAccessPresent = 0,
gestaltOpenTptRemoteAccessLoaded = 1,
gestaltOpenTptRemoteAccessClientOnly = 2,
gestaltOpenTptRemoteAccessPServer = 3,
gestaltOpenTptRemoteAccessMPServer = 4,
gestaltOpenTptPPPPresent = 5,
gestaltOpenTptARAPPresent = 6
};
Opent Transport Remote Access Version Selector
Specifies version information for Open Transport remote access.
enum {
gestaltOpenTptRemoteAccessVersion = 'otrv'
};
Open Transport Version Selector
Specifies version information for Open Transport.
enum {
gestaltOpenTptVersions = 'otvr'
};
OS Trap Table Selector
Specifies base address information for the operating system trap dispatch table.
enum {
gestaltOSTable = 'ostt'
};
Constants
gestaltOSTableThe selector you pass to the
Gestaltfunction to determine the base address of the operating system trap dispatch table.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Parity Checking Attribute Selectors
Specify feature availability for parity checking.
enum {
gestaltParityAttr = 'prty',
gestaltHasParityCapability = 0,
gestaltParityEnabled = 1
};
Constants
gestaltParityAttrThe selector you pass to the
Gestaltfunction to determine information about the machine’s parity-checking features.Note that parity is not considered to be enabled unless all installed memory is parity RAM.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasParityCapabilityAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltParityEnabledAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
PC Compatibility Card Selectors
Specify version and feature availability information for a PC-compatibility card.
enum {
gestaltPCCard = 'pccd',
gestaltCardServicesPresent = 0,
gestaltPCCardFamilyPresent = 1,
gestaltPCCardHasPowerControl = 2,
gestaltPCCardSupportsCardBus = 3
};
PC Exchange Attribute Selectors
Specify feature availability information for PC Exchange.
enum {
gestaltPCXAttr = 'pcxg',
gestaltPCXHas8and16BitFAT = 0,
gestaltPCXHasProDOS = 1,
gestaltPCXNewUI = 2,
gestaltPCXUseICMapping = 3
};
Constants
gestaltPCXAttrThe selector you pass to the
Gestaltfunction to determine the PC Exchange attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPCXHas8and16BitFATAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPCXHasProDOSAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPCXNewUIAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPCXUseICMappingAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Physical RAM Size Selector
Specifies information about the size of the physical RAM.
enum {
gestaltPhysicalRAMSize = 'ram '
};
Constants
gestaltPhysicalRAMSizeThe selector you pass to the
Gestaltfunction to determine the number of bytes of physical RAM currently installed.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Pop-up Control Selector
Specify feature availability for pop-up controls.
enum {
gestaltPopupAttr = 'pop!',
gestaltPopupPresent = 0
};
Constants
gestaltPopupAttrThe selector you pass to the
Gestaltfunction to determine the attribute of the pop-up control definition.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPopupPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Power Manager Attribute Selectors
Specify feature availability for the Power Manager.
enum {
gestaltPowerMgrAttr = 'powr',
gestaltPMgrExists = 0,
gestaltPMgrCPUIdle = 1,
gestaltPMgrSCC = 2,
gestaltPMgrSound = 3,
gestaltPMgrDispatchExists = 4,
gestaltPMgrSupportsAVPowerStateAtSleepWake = 5
};
Constants
gestaltPowerMgrAttrThe
Gestaltselector you pass to determine which Power Manager capabilities are available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPMgrExistsIf true, the Power Manager is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPMgrCPUIdleIf true the CPU is capable of going into a low–power-consumption state.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPMgrSCCIf true, it is possible to stop the SCC clock, thus effectively turning off the serial ports.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPMgrSoundIf true, it is possible to turn off power to the sound circuits.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPMgrDispatchExistsIf true, Dispatch is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPMgrSupportsAVPowerStateAtSleepWakeAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Power Manager Version Selector
Specifies version information for the Power Manager.
enum {
gestaltPowerMgrVers = 'pwrv'
};
PowerPC Attribute Selectors
Specify feature availability for PowerPC processors.
enum {
gestaltPowerPCProcessorFeatures = 'ppcf',
gestaltPowerPCHasGraphicsInstructions = 0,
gestaltPowerPCHasSTFIWXInstruction = 1,
gestaltPowerPCHasSquareRootInstructions = 2,
gestaltPowerPCHasDCBAInstruction = 3,
gestaltPowerPCHasVectorInstructions = 4,
gestaltPowerPCHasDataStreams = 5
};
PowerPC Toolbox Attribute Selectors
Specify feature availability for the PowerPC Toolbox.
enum {
gestaltPPCToolboxAttr = 'ppc ',
gestaltPPCToolboxPresent = 0x0000,
gestaltPPCSupportsRealTime = 0x1000,
gestaltPPCSupportsIncoming = 0x0001,
gestaltPPCSupportsOutGoing = 0x0002,
gestaltPPCSupportsTCP_IP = 0x0004,
gestaltPPCSupportsIncomingAppleTalk = 0x0010,
gestaltPPCSupportsIncomingTCP_IP = 0x0020,
gestaltPPCSupportsOutgoingAppleTalk = 0x0100,
gestaltPPCSupportsOutgoingTCP_IP = 0x0200
};
Constants
gestaltPPCToolboxAttrThe selector you pass to the Gestalt function to determine the Program-to-Program Communication (PPC) Toolbox attributes. Note that these constants are defined as masks, not bit numbers.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCToolboxPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCSupportsRealTimeAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCSupportsIncomingAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCSupportsOutGoingAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCSupportsTCP_IPAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCSupportsIncomingAppleTalkAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCSupportsIncomingTCP_IPAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCSupportsOutgoingAppleTalkAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPPCSupportsOutgoingTCP_IPAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Preemptive Function Attribute Selectors
Specify feature availability information for preemptive system software functions.
enum {
gestaltMPCallableAPIsAttr = 'mpsc',
gestaltMPFileManager = 0,
gestaltMPDeviceManager = 1,
gestaltMPTrapCalls = 2
};
Constants
gestaltMPCallableAPIsAttrThe Gestalt selector passed to determine the availability of preemptive system software functions. The
Gestaltfunction produces a 32-bit value that you should test to determine which what type of preemptive calls are allowed.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMPFileManagerIf this bit is set, you can call preemptively safe File Manager functions.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMPDeviceManagerIf this bit is set, you can call preemptively safe Device Manager function.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMPTrapCallsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any Mac OS system software functions from a preemptive task , you should call the Gestalt function with the gestaltMPCallableAPIsAttr selector set to determine which preemptively safe system calls are allowed.
Note that for functions that are shared between managers (for example, PBCloseSync), you should check the bit that is appropriate for the manager you want to call.
Version Notes
Introduced with Multiprocessing Services 2.1
Processor Clock Speed Selector
Specifies information about processor clock speed.
enum {
gestaltProcClkSpeed = 'pclk'
};
Processor Type Selector
Specifies information about the type of microprocessor.
enum {
gestaltProcessorType = 'proc',
gestalt68000 = 1,
gestalt68010 = 2,
gestalt68020 = 3,
gestalt68030 = 4,
gestalt68040 = 5
};
Constants
gestaltProcessorTypeThe selector you pass to the
Gestaltfunction to determine the type of microprocessor currently running.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68000Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68010Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68020Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68030Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68040Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Quadra Redefinitions
Specifies alternate names for MacQuadra constants.
enum {
gestaltQuadra605 = gestaltMacQuadra605,
gestaltQuadra610 = gestaltMacQuadra610,
gestaltQuadra630 = gestaltMacQuadra630,
gestaltQuadra650 = gestaltMacQuadra650,
gestaltQuadra660AV = gestaltMacQuadra660AV,
gestaltQuadra700 = gestaltMacQuadra700,
gestaltQuadra800 = gestaltMacQuadra800,
gestaltQuadra840AV = gestaltMacQuadra840AV,
gestaltQuadra900 = gestaltMacQuadra900,
gestaltQuadra950 = gestaltMacQuadra950
};
QuickDraw 3D Attribute Selectors
Specify feature availability information for QuickDraw 3D.
enum {
gestaltQD3D = 'qd3d',
gestaltQD3DPresent = 0
};
Quick Draw 3D Old Attribute Selectors
Specify old feature availability information for QuickDraw 3D.
enum {
gestaltQD3DNotPresent = (0 << gestaltQD3DPresent),
gestaltQD3DAvailable = (1 << gestaltQD3DPresent)
};
Quick Draw 3D Version Selector
Specifies version information for QuickDraw 3D.
enum {
gestaltQD3DVersion = 'q3v '
};
QuickDraw 3D Viewer Attribute Selectors
Specify feature availability information for QuickDraw 3D Viewer.
enum {
gestaltQD3DViewer = 'q3vc',
gestaltQD3DViewerPresent = 0
};
QuickDraw Attribute Selectors
Specify feature availability information for QuickDraw.
enum {
gestaltQuickdrawFeatures = 'qdrw',
gestaltHasColor = 0,
gestaltHasDeepGWorlds = 1,
gestaltHasDirectPixMaps = 2,
gestaltHasGrayishTextOr = 3,
gestaltSupportsMirroring = 4,
gestaltQDHasLongRowBytes = 5
};
Constants
gestaltQuickdrawFeaturesThe selector you pass to the
Gestaltfunction to determine the QuickDraw features.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasColorAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasDeepGWorldsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasDirectPixMapsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasGrayishTextOrAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSupportsMirroringAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltQDHasLongRowBytesAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
QuickDraw Version Selectors
Specify version information for QuickDraw.
enum {
gestaltQuickdrawVersion = 'qd ',
gestaltOriginalQD = 0x0000,
gestalt8BitQD = 0x0100,
gestalt32BitQD = 0x0200,
gestalt32BitQD11 = 0x0201,
gestalt32BitQD12 = 0x0220,
gestalt32BitQD13 = 0x0230,
gestaltAllegroQD = 0x0250,
gestaltMacOSXQD = 0x0300
};
Constants
gestaltQuickdrawVersionThe Gestalt selector you pass to determine what version of QuickDraw is present. For QuickDraw Text, the Gestalt selector you pass to determine what version of QuickDraw Text is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltOriginalQDAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt8BitQDAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt32BitQDAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt32BitQD11Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt32BitQD12Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt32BitQD13Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAllegroQDAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMacOSXQDAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
The version of QuickDraw is encoded as a revision number in the low-order word of the return value. The high-order byte represents the major revision number, and the low-order byte represents the minor revision number. For example, version 1.3 of 32-Bit QuickDraw represents QuickDraw revision 2.3; its response value is $0230.
Values having a major revision number of 1 or 2 indicate that Color QuickDraw is available, in either the 8-bit or 32-bit version. These results do not, however, indicate whether a color monitor is attached to the system. You must use high-level QuickDraw functions to obtain that information.
QuickDraw GX Overall Version Selector
Specifies version information for the overall version of QuickDraw GX.
enum {
gestaltGXVersion = 'qdgx'
};
QuickDraw GX Printing Version Selector
Specifies version information for QuickDraw GX printing.
enum {
gestaltGXPrintingMgrVersion = 'pmgr'
};
QuickDraw GX Version Selectors
Specify version information for QuickDraw GX.
enum {
gestaltGraphicsVersion = 'grfx',
gestaltCurrentGraphicsVersion = 0x00010200
};
Constants
gestaltGraphicsVersionAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCurrentGraphicsVersionAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
QuickDraw GX Attribute Selectors
Specify feature availability information for QuickDraw GX.
enum {
gestaltGraphicsAttr = 'gfxa',
gestaltGraphicsIsDebugging = 0x00000001,
gestaltGraphicsIsLoaded = 0x00000002,
gestaltGraphicsIsPowerPC = 0x00000004
};
QuickDraw 3D Viewer Old Selectors
Specify old feature availability information for QuickDraw 3D.
enum {
gestaltQD3DViewerNotPresent = (0 << gestaltQD3DViewerPresent),
gestaltQD3DViewerAvailable = (1 << gestaltQD3DViewerPresent)
};
QuickDraw Text Attribute Selectors
Specify feature availability information for QuickDraw Text.
enum {
gestaltQDTextFeatures = 'qdtf',
gestaltWSIISupport = 0,
gestaltSbitFontSupport = 1,
gestaltAntiAliasedTextAvailable = 2,
gestaltOFA2available = 3,
gestaltCreatesAliasFontRsrc = 4,
gestaltNativeType1FontSupport = 5,
gestaltCanUseCGTextRendering = 6
};
Constants
gestaltQDTextFeaturesAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltWSIISupportWSII support is included.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSbitFontSupportsbit-only fonts are supported.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAntiAliasedTextAvailableCapable of antialiased text.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltOFA2availableOFA2 is available.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCreatesAliasFontRsrcAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltNativeType1FontSupportAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltCanUseCGTextRenderingAvailable in OS X v10.2 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent upon QuickDraw Text, your application should pass the selector gestaltQDTextFeatures to the Gestalt function to determine the QuickDraw Text attributes that are present.
QuickDraw Text Version Selectors
Specify version information for QuickDraw Text.
enum {
gestaltQDTextVersion = 'qdtx',
gestaltOriginalQDText = 0x0000,
gestaltAllegroQDText = 0x0100,
gestaltMacOSXQDText = 0x0200
};
Constants
gestaltQDTextVersionAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltOriginalQDTextThis is the original version of QuickDraw Text, used through Mac OS 8.1.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltAllegroQDTextThis is the version of QuickDraw Text used with Mac OS 8.2 and up.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMacOSXQDTextAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
To determine the version of the current QuickDraw Text, your application should pass the selector gestaltQuickdrawVersion to the Gestalt function.
QuickTime VR Feature Selectors
Specify feature availability information for QuickTime VR.
enum {
gestaltQTVRMgrAttr = 'qtvr',
gestaltQTVRMgrPresent = 0,
gestaltQTVRObjMoviesPresent = 1,
gestaltQTVRCylinderPanosPresent = 2,
gestaltQTVRCubicPanosPresent = 3
};
QuickTime VR Version Selector
Specifies version information for QuickTime VR.
enum {
gestaltQTVRMgrVers = 'qtvv'
};
QuickTime Attribute Selectors
Specify feature availability information for QuickTime.
enum {
gestaltQuickTimeFeatures = 'qtrs',
gestaltPPCQuickTimeLibPresent = 0
};
QuickTime Version Selectors
Specify version information for QuickTime.
enum {
gestaltQuickTimeVersion = 'qtim',
gestaltQuickTime = 'qtim'
};
Constants
gestaltQuickTimeVersionThe selector you pass to the
Gestaltfunction to determine the QuickTime version.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltQuickTimeAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
QuickTime Conferencing Information Selector
Specifies information about QuickTime conferencing.
enum {
gestaltQuickTimeConferencingInfo = 'qtci'
};
Constants
gestaltQuickTimeConferencingInfoAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
QuickTime Conferencing Selector
Specifies availability information for QuickTime conferencing.
enum {
gestaltQuickTimeConferencing = 'mtlk'
};
QuickTime Streaming Attribute Selector
Specify feature availability information for QuickTime streaming.
enum {
gestaltQuickTimeStreamingFeatures = 'qtsf'
};
QuickTime Streaming Version Selector
Specifies version information for QuickTime streaming.
enum {
gestaltQuickTimeStreamingVersion = 'qtst'
};
RBV Address Selector
Specifies information about the RBV base address.
enum {
gestaltRBVAddr = 'rbv '
};
Realtime Manager Attribute Selectors
Specify feature availability information for the Realtime Manager.
enum {
gestaltRealtimeMgrAttr = 'rtmr',
gestaltRealtimeMgrPresent = 0
};
Constants
gestaltRealtimeMgrAttrThe selector you pass to the
Gestaltfunction to determine the Realtime Manager attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltRealtimeMgrPresent( description forthcoming )
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Resource Manager Bug Fixes Attribute Selectors
Specify feature availability information for Resource Manager bug fixes.
enum {
gestaltResourceMgrBugFixesAttrs = 'rmbg',
gestaltRMForceSysHeapRolledIn = 0,
gestaltRMFakeAppleMenuItemsRolledIn = 1,
gestaltSanityCheckResourceFiles = 2,
gestaltSupportsFSpResourceFileAlreadyOpenBit = 3,
gestaltRMSupportsFSCalls = 4,
gestaltRMTypeIndexOrderingReverse = 8
};
Resource Manager Attribute Selectors
Specify feature availability information for the Resource Manager.
enum {
gestaltResourceMgrAttr = 'rsrc',
gestaltPartialRsrcs = 0,
gestaltHasResourceOverrides = 1
};
Constants
gestaltResourceMgrAttrThe
Gestaltselector you pass to determine which Resource Manager attributes are present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPartialRsrcsIf
true, partial resources exist.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasResourceOverridesAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent upon the Resource Manager, your application should pass the selector gestaltResourceMgrAttr to the Gestalt function to determine the Resource Manager attributes that are present.
ROM Size Selector
Specifies information about ROM size information.
enum {
gestaltROMSize = 'rom '
};
Constants
gestaltROMSizeThe selector you pass to the
Gestaltfunction to determine the size of the installed ROM, in bytes. The value is returned in only one word.You should not infer the existence of certain hardware or software features from the responses that Gestalt returns when you pass it this selector.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
ROM Version Selector
Specifies ROM version information.
enum {
gestaltROMVersion = 'romv'
};
Constants
gestaltROMVersionThis selector is NOT supported in Carbon.
The selector you pass to the
Gestaltfunction to determine the version number of the installed ROM (in the low-order word of the return value).Never infer the existence of certain hardware or software features from the responses that
Gestaltreturns when you pass it this selector.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
SCC Read Address Selector
Specifies information about the base address for reading SCC.
enum {
gestaltSCCReadAddr = 'sccr'
};
SCC Write Address Selector
Specifies information about the base address for writing SCC.
enum {
gestaltSCCWriteAddr = 'sccw'
};
SCSI Manager Attribute Selectors
Specify feature availability information for the SCSI Manager.
enum {
gestaltSCSI = 'scsi',
gestaltAsyncSCSI = 0,
gestaltAsyncSCSIINROM = 1,
gestaltSCSISlotBoot = 2,
gestaltSCSIPollSIH = 3
};
Scrap Manager Selectors
Specify version and feature availability information for the Scrap Manager.
enum {
gestaltScrapMgrAttr = 'scra',
gestaltScrapMgrTranslationAware = 0
};
Constants
gestaltScrapMgrAttrThe
Gestaltselector you pass to determine which Scrap Manager attributes are present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltScrapMgrTranslationAwareIf
true, the Scrap Manager supports Translation Manager.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent upon the Scrap Manager, your application should pass the selector gestaltScrapMgrAttr to the Gestalt function to determine the Scrap Manager attributes that are present.
Screen Capture Selectors
Specifies location information for screen capture.
enum {
gestaltScreenCaptureMain = 'pic1',
gestaltScreenCaptureDir = 'pic2'
};
Script Manager Version Selector
Specifies version information for the Script Manager.
enum {
gestaltScriptMgrVersion = 'scri'
};
Constants
gestaltScriptMgrVersionThe selector you pass to the
Gestaltfunction to determine the version number of the Script Manager (in the low-order word of the return value).Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Script Systems Count Selector
Specifies information about the number of active script systems.
enum {
gestaltScriptCount = 'scr#'
};
Constants
gestaltScriptCountThe selector you pass to the Gestalt function to determine the number of script systems currently active.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Serial Hardware Attribute Selectors
Specify serial hardware attributes.
enum {
gestaltSerialAttr = 'ser ',
gestaltHasGPIaToDCDa = 0,
gestaltHasGPIaToRTxCa = 1,
gestaltHasGPIbToDCDb = 2,
gestaltHidePortA = 3,
gestaltHidePortB = 4,
gestaltPortADisabled = 5,
gestaltPortBDisabled = 6
};
Constants
gestaltSerialAttrThe selector you pass to the
Gestaltfunction to determine the serial hardware attributes of the machine, such as whether or not the GPIa line is connected and can be used for external clocking.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasGPIaToDCDaAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasGPIaToRTxCaAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasGPIbToDCDbAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHidePortAAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHidePortBAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPortADisabledAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPortBDisabledAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Serial Port Arbitrator Attribute Selectors
Specify feature availability information for serial port arbitration.
enum {
gestaltArbitorAttr = 'arb ',
gestaltSerialArbitrationExists = 0
};
Settings Manager Attribute Selectors
Specify feature availability information for the Settings Manager.
enum {
gestaltALMAttr = 'trip',
gestaltALMPresent = 0,
gestaltALMHasSFGroup = 1,
gestaltALMHasCFMSupport = 2,
gestaltALMHasRescanNotifiers = 3
};
Discussion
See also “Settings Manager Version Selector.”
Settings Manager Location Selector
Specifies location information for the Settings Manager.
enum {
gestaltALMHasSFLocation = gestaltALMHasSFGroup
};
Settings Manager Version Selector
Specifies version information for the Settings Manager.
enum {
gestaltALMVers = 'walk'
};
Shutdown Attribute Selectors
Specify shutdown attributes.
enum {
gestaltShutdownAttributes = 'shut',
gestaltShutdownHassdOnBootVolUnmount = 0
};
Single Window Mode Selectors
Specify single-window modes.
enum {
gestaltHasSingleWindowModeBit = 8,
gestaltHasSingleWindowModeMask = (1L << gestaltHasSingleWindowModeBit)
};
Slot Attribute Selectors
Specify feature availability for slots.
enum {
gestaltSlotAttr = 'slot',
gestaltSlotMgrExists = 0,
gestaltNuBusPresent = 1,
gestaltSESlotPresent = 2,
gestaltSE30SlotPresent = 3,
gestaltPortableSlotPresent = 4
};
Constants
gestaltSlotAttrThe selector you pass to the
Gestaltfunction to determine the Slot Manager attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSlotMgrExistsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltNuBusPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSESlotPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSE30SlotPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPortableSlotPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Slot Number Selector
Specifies information about the first physical slot in the computer.
enum {
gestaltFirstSlotNumber = 'slt1'
};
Constants
gestaltFirstSlotNumberThe first physical slot.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Software Vendor Codes
Specify codes for software vendors.
enum {
gestaltSoftwareVendorCode = 'srad',
gestaltSoftwareVendorApple = 'Appl',
gestaltSoftwareVendorLicensee = 'Lcns'
};
Sound Manager Attribute Selectors
Specify feature availability information for the Sound Manager.
enum {
gestaltSoundAttr = 'snd ',
gestaltStereoCapability = 0,
gestaltStereoMixing = 1,
gestaltSoundIOMgrPresent = 3,
gestaltBuiltInSoundInput = 4,
gestaltHasSoundInputDevice = 5,
gestaltPlayAndRecord = 6,
gestalt16BitSoundIO = 7,
gestaltStereoInput = 8,
gestaltLineLevelInput = 9,
gestaltSndPlayDoubleBuffer = 10,
gestaltMultiChannels = 11,
gestalt16BitAudioSupport = 12
};
Constants
gestaltSoundAttrThe Gestalt selector which you pass to the
Gestaltfunction.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStereoCapabilitySet if the built-in sound hardware is able to produce stereo sounds.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStereoMixingSet if the built-in sound hardware mixes both left and right channels of stereo sound into a single audio signal for the internal speaker.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSoundIOMgrPresentSet if the Sound Input Manager is available.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltBuiltInSoundInputSet if a built-in sound input device is available.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasSoundInputDeviceSet if a sound input device is available. This device can be either built-in or external.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPlayAndRecordSet if the built-in sound hardware is able to play and record sounds simultaneously. If this bit is clear, the built-in sound hardware can either play or record, but not do both at once. This bit is valid only if the
gestaltBuiltInSoundInputbit is set, and it applies only to any built-in sound input and output hardware.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt16BitSoundIOSet if the built-in sound hardware is able to play and record 16-bit samples. This indicates that built-in hardware necessary to handle 16-bit data is available.
This bit is not defined for versions of the Sound Manager prior to version 3.0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStereoInputSet if the built-in sound hardware can record stereo sounds.
This bit is not defined for versions of the Sound Manager prior to version 3.0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltLineLevelInputSet if the built-in sound input port requires line level input.
This bit is not defined for versions of the Sound Manager prior to version 3.0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSndPlayDoubleBufferSet if the Sound Manager supports the play-from-disk functions.
This bit is not defined for versions of the Sound Manager prior to version 3.0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltMultiChannelsSet if the Sound Manager supports multiple channels of sound.
This bit is not defined for versions of the Sound Manager prior to version 3.0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt16BitAudioSupportSet if the Sound Manager can handle 16-bit audio data. This indicates that software necessary to handle 16-bit data is available.
This bit is not defined for versions of the Sound Manager prior to version 3.0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
You can pass the gestaltSoundAttr selector to the Gestalt function to determine information about the sound input capabilities of a Macintosh computer.
The Gestalt function returns information by setting or clearing bits in the response parameter. The bits relevant to the Sound Input Manager are defined by constants.
Speech Manager Attribute Selectors
Specify feature availability information for the Speech Manager.
enum {
gestaltSpeechAttr = 'ttsc',
gestaltSpeechMgrPresent = 0,
gestaltSpeechHasPPCGlue = 1
};
Constants
gestaltSpeechAttrThe selector you pass to the
Gestaltfunction to determine the Speech Manager attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSpeechMgrPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSpeechHasPPCGlueAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Speech Recognition Version Selector
Specifies version information for the Speech Recognition Manager.
enum {
gestaltSpeechRecognitionVersion = 'srtb'
};
Speech Recognition Manager Attribute Selectors
Specify feature availability information for the Speech Recognition Manager.
enum {
gestaltSpeechRecognitionAttr = 'srta',
gestaltDesktopSpeechRecognition = 1,
gestaltTelephoneSpeechRecognition = 2
};
Constants
gestaltSpeechRecognitionAttrThe selector which you pass to the
Gestaltfunction to determine the Speech Recognition Manager attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltDesktopSpeechRecognitionIf this bit is set, the Speech Recognition Manager supports the desktop microphone.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTelephoneSpeechRecognitionIf this bit is set, the Speech Recognition Manager supports telephone input. In versions 1.5 and earlier, this bit is always 0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
You can pass the gestaltSpeechRecognitionAttr selector to the Gestalt function to get the attributes of the Speech Recognition Manager. Gestalt returns information to you by returning a long word in the response parameter. The returned values are defined by these constants.
Standard Directory Find Panel Selector
Specifies version information for the standard directory find panel.
enum {
gestaltSDPFindVersion = 'dfnd'
};
Standard Directory Prompt Panel Selector
Specifies version information for the standard directory prompt panel.
enum {
gestaltSDPPromptVersion = 'prpv'
};
Standard Directory Version Selector
Specifies version information for the standard directory.
enum {
gestaltSDPStandardDirectoryVersion = 'sdvr'
};
Startup Disk Attribute Selectors
Specify feature availability information for the startup disk.
enum {
gestaltSplitOSAttr = 'spos',
gestaltSplitOSBootDriveIsNetworkVolume = 0,
gestaltSplitOSAware = 1,
gestaltSplitOSEnablerVolumeIsDifferentFromBootVolume = 2,
gestaltSplitOSMachineNameSetToNetworkNameTemp = 3,
gestaltSplitOSMachineNameStartupDiskIsNonPersistent = 5
};
Standard File Attribute Selectors
Specify feature availability information for Standard File.
enum {
gestaltStandardFileAttr = 'stdf',
gestaltStandardFile58 = 0,
gestaltStandardFileTranslationAware = 1,
gestaltStandardFileHasColorIcons = 2,
gestaltStandardFileUseGenericIcons = 3,
gestaltStandardFileHasDynamicVolumeAllocation = 4
};
Constants
gestaltStandardFileAttrThe selector you pass to the Gestalt function to determine the Standard File Package attributes.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStandardFile58If the
gestaltStandardFile58flag bit is set, you can call the four new procedures—StandardPutFile,StandardGetFile,CustomPutFile, andCustomGetFile—introduced with System 7. (The name of the constant reflects the enabling of selectors 5 through 8 on the trap macro that handles the Standard File Package.)Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStandardFileTranslationAwareAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStandardFileHasColorIconsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStandardFileUseGenericIconsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStandardFileHasDynamicVolumeAllocationAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
System Architecture Selectors
Specify the native system architecture.
enum {
gestaltSysArchitecture = 'sysa',
gestalt68k = 1,
gestaltPowerPC = 2,
gestaltIntel = 10
};
Constants
gestaltSysArchitectureThe selector you pass to the
Gestaltfunction to determine the native system architecture.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestalt68kIf the
Gestaltfunction returnsgestalt68k, the system is a MC680x0 Macintosh.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltPowerPCIf the
Gestaltfunction returnsgestaltPowerPC, the system is a PowerPC Macintosh.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltIntelIf the
Gestaltfunction returnsgestaltIntel, the system is is an Intel-based Macintosh.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
System Update Version Selector
Indicates version information for system updates.
enum {
gestaltSystemUpdateVersion = 'sysu'
};
System Version Selectors
Indicates operating system version information.
enum {
gestaltSystemVersion = 'sysv'
gestaltSystemVersionMajor = 'sys1',
gestaltSystemVersionMinor = 'sys2',
gestaltSystemVersionBugFix = 'sys3'
};
Constants
gestaltSystemVersionIndicates the version number of the operating system, with limitations on the values returned.
Important: Never infer the availability of hardware or software features from the value that the
Gestaltfunction returns when you pass it thegestaltSystemVersionselector.In OS X v10.4 and later, the recommended way to get operating system version information is to use the
gestaltSystemVersionMajor,gestaltSystemVersionMinor, andgestaltSystemVersionBugFixselectors, listed below, in concert. These selectors do not have arbitrary limits on the values returned.If the values of the minor or bug fix revision are larger than 9, then
gestaltSystemVersionwill substitute the value 9 for them. For example, when running OS X v10.3.15, this selector returns0x1039. When running OS X v10.10.5, this selector returns0x1095.For OS X, the version representations are as shown in Table 1.
Table 1 Representation of OS X versions for the gestaltSystemVersionselectorOS X version
Representation
10.0
0x1000
10.1
0x1010
10.2
0x1020
10.3
0x1030
10.4
0x1040
For systems prior to OS X, the version is represented as four hexadecimal digits in the low-order word of the return value. For example, if your application is running in version 7.0.1, then
Gestaltreturns the value 0x0701. Ignore the high-order word of the returned value.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSystemVersionMajorThe major operating system version number. For example, in 10.4.12 this would be the decimal value 10.
Available in OS X v10.3 and later.
Declared in
Gestalt.h.gestaltSystemVersionMinorThe minor operating system version number. For example, in 10.4.12 this would be the decimal value 4.
Available in OS X v10.3 and later.
Declared in
Gestalt.h.gestaltSystemVersionBugFixThe bug fix version number. For example, in 10.4.12 this would be the decimal value 12.
Available in OS X v10.3 and later.
Declared in
Gestalt.h.
Discussion
Use the gestaltSystemVersionMajor, gestaltSystemVersionMinor, and gestaltSystemVersionBugFix selectors in concert to obtain the operating system version. Do not use the gestaltSystemVersion selector for this purpose.
Telephone Manager Attribute Selectors
Specify feature availability information for the Telephone Manager.
enum {
gestaltTeleMgrAttr = 'tele',
gestaltTeleMgrPresent = 0,
gestaltTeleMgrPowerPCSupport = 1,
gestaltTeleMgrSoundStreams = 2,
gestaltTeleMgrAutoAnswer = 3,
gestaltTeleMgrIndHandset = 4,
gestaltTeleMgrSilenceDetect = 5,
gestaltTeleMgrNewTELNewSupport = 6
};
Terminal Manager Attribute Selectors
Specify feature availability information for the Terminal Manager.
enum {
gestaltTermMgrAttr = 'term',
gestaltTermMgrPresent = 0,
gestaltTermMgrErrorString = 2
};
Constants
gestaltTermMgrAttrThe selector you pass to the
Gestaltfunction to determine the Terminal Manager attributes.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTermMgrPresentAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTermMgrErrorStringAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
TextEdit Attribute Selectors
Specify feature availability information for TextEdit.
enum {
gestaltTEAttr = 'teat',
gestaltTEHasGetHiliteRgn = 0,
gestaltTESupportsInlineInput = 1,
gestaltTESupportsTextObjects = 2,
gestaltTEHasWhiteBackground = 3
};
Constants
gestaltTEAttrThe
Gestaltselector you pass to determine whichTextEdit attributes are present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTEHasGetHiliteRgnIf true, TextEdit has
TEGetHiliteRgn.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTESupportsInlineInputIf
true, TextEdit does Inline Input.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTESupportsTextObjectsIf
true, TextEdit does Text Objects.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTEHasWhiteBackgroundIf
true, TextEdit supports overriding theTERec' data structure background field to white.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent upon TextEdit, your application should pass the selector gestaltTEAttr to the Gestalt function to determine the TextEdit attributes that are present.
TextEdit Version Selectors
Specify version information for TextEdit.
enum {
gestaltTextEditVersion = 'te ',
gestaltTE1 = 1,
gestaltTE2 = 2,
gestaltTE3 = 3,
gestaltTE4 = 4,
gestaltTE5 = 5
};
Constants
gestaltTextEditVersionThe
Gestaltselector you pass to determine what version of TextEdit is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTE1The version of TextEdit found in Mac IIci ROM.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTE2The version of TextEdit shipped with 6.0.4 Script Systems on Mac IIci (Script bug fixes for Mac IIci).
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTE3The version of TextEdit shipped with 6.0.4 Script Systems (all but Mac IIci).
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTE4The version of TextEdit shipped in System 7.0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTE5TextWidthHookis available in TextEdit.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
To determine the version of the current TextEdit, your application should pass the selector gestalt TextEditVersion to the Gestalt function.
Text Services Manager Attribute Selectors
Specify feature availability information for the Text Services Manager.
enum {
gestaltTSMgrAttr = 'tsma',
gestaltTSMDisplayMgrAwareBit = 0,
gestaltTSMdoesTSMTEBit = 1
};
Text Services Manager Version Selectors
Specifies version information for the Text Services Manager.
enum {
gestaltTSMgrVersion = 'tsmv',
gestaltTSMgr15 = 0x0150,
gestaltTSMgr20 = 0x0200
};
Constants
gestaltTSMgrVersionThe selector you pass to the
Gestaltfunction to determine the version of the Text Services Manager.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTSMgr15Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTSMgr20Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Thread Manager Attribute Selectors
Specify feature availability information for the Thread Manager.
enum {
gestaltThreadMgrAttr = 'thds',
gestaltThreadMgrPresent = 0,
gestaltSpecificMatchSupport = 1,
gestaltThreadsLibraryPresent = 2
};
Constants
gestaltThreadMgrAttrAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltThreadMgrPresentThis bit is set if the Thread Manager is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSpecificMatchSupportThis bit is set if the Thread Manager supports the allocation of threads based on an exact match with the requested stack size. If this bit is not set, the Thread Manager allocates threads based on the closest match to the requested stack size.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltThreadsLibraryPresentThis bit is set if the native version of the threads library has been loaded.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent upon the Thread Manager, your application should pass the selector gestaltThreadMgrAttr to the Gestalt function to determine the Thread Manager attributes that are present.
Time Manager Version Selectors
Specify version information for the Time Manager.
enum {
gestaltTimeMgrVersion = 'tmgr',
gestaltStandardTimeMgr = 1,
gestaltRevisedTimeMgr = 2,
gestaltExtendedTimeMgr = 3,
gestaltNativeTimeMgr = 4
};
Constants
gestaltTimeMgrVersionThe Gestalt selector you pass to determine what version of the Time Manager is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltStandardTimeMgrIf this bit is set, the original Time Manager is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltRevisedTimeMgrIf this bit is set, the revised Time Manager is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltExtendedTimeMgrIf this bit is set, the extended Time Manager is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltNativeTimeMgrIf this bit is set, the native Time Manager is present.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
To determine the version of the current Time Manager, your application should pass the selector gestaltTimeMgrVersion to the Gestalt function.
Toolbox Trap Table Selector
Specifies base address information for the Toolbox trap dispatch table.
enum {
gestaltToolboxTable = 'tbtt'
};
Constants
gestaltToolboxTableThe selector you pass to the
Gestaltfunction to determine the base address of the Toolbox trap dispatch table.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Toolbox Trap Table (Second Half) Selector
Specifies address information for the second half of the Toolbox trap table.
enum {
gestaltExtToolboxTable = 'xttt'
};
Constants
gestaltExtToolboxTableThe base address of the second half of the Toolbox trap table if the table is discontiguous. If the table is contiguous, this selector returns 0.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Translation Manager Attribute Selectors
Specify feature availability information for the Translation Manager.
enum {
gestaltTranslationAttr = 'xlat',
gestaltTranslationMgrExists = 0,
gestaltTranslationMgrHintOrder = 1,
gestaltTranslationPPCAvail = 2,
gestaltTranslationGetPathAPIAvail = 3
};
Constants
gestaltTranslationAttrThe
Gestaltselector you pass to determine which Translation Manager attributes are present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTranslationMgrExistsIf
true, the Translation Manager is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTranslationMgrHintOrderIn earlier versions of the Translation Manager, the scrap hints in the
DoTranslateScrapProcPtrfunction were reversed. In later versions, this was fixed. If this bit is true, this bug fix is in effect.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTranslationPPCAvailIf
true, the PowerPC Translation Library is available, and you can call the Translation Manager from native PowerPC code.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltTranslationGetPathAPIAvailIf true, the functions
GetFileTranslationPathandGetPathTranslationDialogare available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent upon the Translation Manager your application should pass the selector gestaltTranslationAttr to the Gestalt function to determine the Translation Manager attributes that are present.
TSME Version Selector
Specifies version information for the Text Services Manager integrated with TextEdit.
enum {
gestaltTE6 = 6
};
TSMTE Attribute Selectors
Specify feature availability information for TSMTE.
enum {
gestaltTSMTEAttr = 'tmTE',
gestaltTSMTEPresent = 0,
gestaltTSMTE = 0
};
TSMTE Version Selectors
Specify version information for TSMTE.
enum {
gestaltTSMTEVersion = 'tmTV',
gestaltTSMTE1 = 0x0100,
gestaltTSMTE15 = 0x0150,
gestaltTSMTE152 = 0x0152
};
TV Tuner Attribute Selectors
Specifies feature availability information for the TV tuner.
enum {
gestaltTVAttr = 'tv ',
gestaltHasTVTuner = 0,
gestaltHasSoundFader = 1,
gestaltHasHWClosedCaptioning = 2,
gestaltHasIRRemote = 3,
gestaltHasVidDecoderScaler = 4,
gestaltHasStereoDecoder = 5,
gestaltHasSerialFader = 6,
gestaltHasFMTuner = 7,
gestaltHasSystemIRFunction = 8,
gestaltIRDisabled = 9,
gestaltINeedIRPowerOffConfirm = 10,
gestaltHasZoomedVideo = 11
};
UDF Selector
Specifies support information for communication between implementations of UDF .
enum {
gestaltUDFSupport = 'kudf'
};
USB Attribute Selectors
Specifies feature availability information for USB.
enum {
gestaltUSBAttr = 'usb ',
gestaltUSBPresent = 0,
gestaltUSBHasIsoch = 1
};
USB Printer Sharing Version Selectors
Specify version information for USB printer sharing.
enum {
gestaltUSBPrinterSharingVersion = 'zak ',
gestaltUSBPrinterSharingVersionMask = 0x0000FFFF,
gestaltUSBPrinterSharingAttr = 'zak ',
gestaltUSBPrinterSharingAttrMask = 0xFFFF0000,
gestaltUSBPrinterSharingAttrRunning = 0x80000000,
gestaltUSBPrinterSharingAttrBooted = 0x40000000
};
USB Version Selector
Specifies version information for USB.
enum {
gestaltUSBVersion = 'usbv'
};
VIA1 Base Address Selector
Specifies base address information for VIA 1.
enum {
gestaltVIA1Addr = 'via1'
};
VIA2 Base Address Selector
Specifies base address information for VIA 2.
enum {
gestaltVIA2Addr = 'via2'
};
Virtual Memory Manager Attribute Selectors
Specify feature availability information for the Virtual Memory Manager.
enum {
gestaltVMAttr = 'vm ',
gestaltVMPresent = 0,
gestaltVMHasLockMemoryForOutput = 1,
gestaltVMFilemappingOn = 3,
gestaltVMHasPagingControl = 4
};
Constants
gestaltVMAttrThe
Gestaltselector you pass to determine the virtual memory attributes that are present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltVMPresentIf
true, virtual memory is present.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltVMHasLockMemoryForOutputAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltVMFilemappingOnAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltVMHasPagingControlAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.
Discussion
Before calling any function dependent on memory, your application should pass the selector gestaltVMAttr to the Gestalt function to determine the virtual memory attributes that are present.
Virtual Memory Backing Store Selector
Specifies file reference number information for the VM backing store.
enum {
gestaltVMBackingStoreFileRefNum = 'vmbs'
};
Virtual Memory Information Type Selectors
Specifies information about the VM type.
enum {
gestaltVMInfoType = 'vmin',
gestaltVMInfoSizeStorageType = 0,
gestaltVMInfoSizeType = 1,
gestaltVMInfoSimpleType = 2,
gestaltVMInfoNoneType = 3
};
Win32 Attribute Selectors
Specify feature availability information for Win32.
enum {
gestaltX86Features = 'x86f',
gestaltX86HasFPU = 0,
gestaltX86HasVME = 1,
gestaltX86HasDE = 2,
gestaltX86HasPSE = 3,
gestaltX86HasTSC = 4,
gestaltX86HasMSR = 5,
gestaltX86HasPAE = 6,
gestaltX86HasMCE = 7,
gestaltX86HasCX8 = 8,
gestaltX86HasAPIC = 9,
gestaltX86Reserved10 = 10,
gestaltX86HasSEP = 11,
gestaltX86HasMTRR = 12,
gestaltX86HasPGE = 13,
gestaltX86HasMCA = 14,
gestaltX86HasCMOV = 15,
gestaltX86HasPAT = 16,
gestaltX86HasPSE36 = 17,
gestaltX86HasMMX = 23,
gestaltX86HasFXSR = 24
};
Window Manager Attribute Selectors
Specify feature availability information for the Window Manager.
enum {
gestaltWindowMgrAttr = 'wind',
gestaltWindowMgrPresent = (1L << 0),
gestaltWindowMgrPresentBit = 0,
gestaltExtendedWindowAttributes = 1,
gestaltExtendedWindowAttributesBit = 1,
gestaltHasFloatingWindows = 2,
gestaltHasFloatingWindowsBit = 2,
gestaltHasWindowBuffering = 3,
gestaltHasWindowBufferingBit = 3,
gestaltWindowLiveResizeBit = 4,
gestaltWindowMinimizeToDockBit = 5,
gestaltHasWindowShadowsBit = 6,
gestaltSheetsAreWindowModalBit = 7,
gestaltFrontWindowMayBeHiddenBit = 8,
gestaltWindowMgrPresentMask = (1L << gestaltWindowMgrPresentBit),
gestaltExtendedWindowAttributesMask = (1L << gestaltExtendedWindowAttributesBit),
gestaltHasFloatingWindowsMask = (1L << gestaltHasFloatingWindowsBit),
gestaltHasWindowBufferingMask = (1L << gestaltHasWindowBufferingBit),
gestaltWindowLiveResizeMask = (1L << gestaltWindowLiveResizeBit),
gestaltWindowMinimizeToDockMask = (1L << gestaltWindowMinimizeToDockBit),
gestaltHasWindowShadowsMask = (1L << gestaltHasWindowShadowsBit),
gestaltSheetsAreWindowModalMask = (1L << gestaltSheetsAreWindowModalBit),
gestaltFrontWindowMayBeHiddenMask = (1L << gestaltFrontWindowMayBeHiddenBit)
};
Constants
gestaltWindowMgrAttrThe
Gestaltselector passed to determine what features of the Window Manager are present. This selector is available with Mac OS 8.5 and later. TheGestaltfunction produces a 32-bit value whose bits you should test to determine which Window Manager features are available.Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltWindowMgrPresentIf the bit specified by this mask is set, the Window Manager functionality for Appearance Manager 1.1 is available. This bit is set for Mac OS 8.5 and later.
Available in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltWindowMgrPresentBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltExtendedWindowAttributesAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltExtendedWindowAttributesBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasFloatingWindowsAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasFloatingWindowsBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasWindowBufferingAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasWindowBufferingBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltWindowLiveResizeBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltWindowMinimizeToDockBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasWindowShadowsBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSheetsAreWindowModalBitAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFrontWindowMayBeHiddenBitAvailable in OS X v10.2 and later.
Declared in
Gestalt.h.gestaltWindowMgrPresentMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltExtendedWindowAttributesMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasFloatingWindowsMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasWindowBufferingMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltWindowLiveResizeMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltWindowMinimizeToDockMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltHasWindowShadowsMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltSheetsAreWindowModalMaskAvailable in OS X v10.0 and later.
Declared in
Gestalt.h.gestaltFrontWindowMayBeHiddenMaskAvailable in OS X v10.2 and later.
Declared in
Gestalt.h.
Discussion
Before calling any functions dependent on the Window Manager, your application should pass the selector gestaltWindowMgrAttr to the Gestalt function to determine which Window Manager functions are available.
WorldScriptII Version Selectors
Specify version information for WorldScript II.
enum {
gestaltWorldScriptIIVersion = 'doub',
gestaltWorldScriptIIAttr = 'wsat',
gestaltWSIICanPrintWithoutPrGeneralBit = 0
};
Result Codes
The most common result codes returned by the Gestalt Manager are listed below.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-07-23)