Important: The information in this document is obsolete and should not be used for new development.
Gestalt Selector and Response Bits
You can determine if the Process Manager is available and find out which features of the launch routine are available by calling theGestalt
function with the selectorgestaltOSAttr
.
CONST gestaltOSAttr = 'os ';{O/S attributes}TheGestalt
function returns information by setting or clearing bits in theresponse
parameter. The following constants define the bits currently used:
CONST gestaltLaunchCanReturn = 1; {can return from launch} gestaltLaunchFullFileSpec = 2; {LaunchApplication available} gestaltLaunchControl = 3; {Process Manager is available}Constant descriptions
gestaltLaunchCanReturn
- Set if the
_Launch
trap macro can return to the caller. The_Launch
trap 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_Launch
trap macro forces the launching application to quit.
gestaltLaunchFullFileSpec
- Set if the
launchControlFlags
field supports control flags in addition to thelaunchContinue
flag, and if the_Launch
trap can process thelaunchAppSpec
,launchProcessSN
,launchPreferredSize
,launchMinimumSize
,launchAvailableSize
, andlaunchAppParameters
fields in the launch parameter block.
gestaltLaunchControl
- Set if the Process Manager is available.