Macintosh gestalt function
Syntax
gestaltbits = gestalt('selector
')
Description
gestaltbits = gestalt('selector
')
passes the four-character string selector
to the Macintosh Operating System function gestalt
. For details about gestalt
, refer to Chapter 1 of Inside Macintosh: Operating System Utilities.
The result, a 32-bit integer, is stored bitwise in gestaltbits
. Thus, the least significant bit of the result is gestaltbits(32)
, while the most significant bit is gestaltbits(1)
.
Example
After executing:
gestaltbits = gestalt('sysa')
gestaltbits(32)
will be 1 if run from a 680x0-based Macintosh, while
gestaltbits(31)
will be 1 if run from a PowerPC-based Macintosh.
[ Previous | Help Desk | Next ]