Important: The information in this document is obsolete and should not be used for new development.
Launch OptionsWhen you use the
LaunchApplicationfunction, you specify the launch options in the
launchControlFlagsfield of the launch parameter block. These are the constants you can specify in the
CONST launchContinue = $4000; launchNoFileFlags = $0800; launchUseMinimum = $0400; launchDontSwitch = $0200; launchInhibitDaemon = $0080;Constant descriptions
- Set this flag if you want your application to continue after the specified application is launched. If you do not set this flag,
LaunchApplicationterminates your application after launching the specified application, even if the launch fails.
Set this flag if you want the
LaunchApplicationfunction to ignore any value specified in the
launchFileFlagsfield. If you set the
LaunchApplicationfunction extracts the Finder flags from the application file for you. If you want to supply the file flags, clear the
launchNoFileFlagsflag and specify the Finder flags in the
launchFileFlagsfield of the launch parameter block.
Clear this flag if you want the
LaunchApplicationfunction to attempt to launch the application in the preferred size (as specified in the application's
'SIZE'resource). If you set the
LaunchApplicationfunction attempts to launch the application using the largest available size greater than or equal to the minimum size but less than the preferred size. If the
LaunchApplicationfunction returns the result code
memFragErr, the application cannot be launched under the current memory conditions.
Set this flag if you do not want the launched application brought to the front. If you set this flag, the launched application runs in the background until the user brings the application to the front--for example, by clicking in one of the application's windows. Note that most applications expect to be launched in the foreground. If you clear the
launchDontSwitchflag, the launched application is brought to the front, and your application is sent to the background.
Set this flag if you do not want
LaunchApplicationto launch a background-only application. (A background-only application has the
onlyBackgroundflag set in its