MacApp 2.0 Globals
MacApp 2.0 Globals
Macintosh · 1988 · PDF
| Filename | MacApp_2.0_Globals_1988.pdf |
|---|---|
| Size | 1.56 MB |
| Year | 1988 |
| Subsection | developer / MacApp / MacApp_2.0b5 |
| Downloads | 1 |
Enjoying MacTrove?
Anonymous downloads are free and unlimited.
Create a free account to track favorites,
contribute metadata corrections, and join the
community chat.
Reader
Loading…
OCR / Text contents
MacApp 2.0 Globals
C1988 Apple Computer. Inc.
(
The MacApp unit defines a number of global constants, variables, types, procedures, and
functions. The globals documented here are described for your reference, but you will probably
not use many of them directly. MacApp methods use the globals, while the application code very
rarely, if ever.
Constants
This section documents the constants defmed as part of the MacApp package. Although the values
of the constants are given here for your information, those values are subject to change. (In some
cases, when the values are very likely to change, they are not given here.) Normally, you should
simply use the constant. identifier and not concern yourself with its value.
The constants are categorized according to purpose.
Copyright constant
kCopyriqht - 'Copyright
1984, 1985, 1986,
1987. 1988
Apple Computer Inc.';
,t
Used to store the copyright notice for MacApp.
Menu constants
kMBarDisplayed -
128;
kMBarNotDisplayed
.. 129;
Identifies the menu bar resource that holds the menus that are initially
displayed.
Identifies the menu bar resource that holds menus that are not initially
displayed. These menus include buzzword menus and menus that may
be displayed later.
Identifies menu bar resource that holds menus that are submenus or
pop-up menus. These menus will be installed when the application is
initialimL
The following constants identify the standard menus shared by all Macintosh applications.
kMBarHierarchical
mApple -
1:
mFile -
2:
mEdit -
3;
mLastMenu '" 63:
mDebuq '" 900:
MacApp 2.0 Globals
Identifies the Apple menu, the leftmost menu in the menu bar.
Identifies the File menu.
Identifies the Edit menu.
Identifies the last menu managed by MacApp's DoSetupMenus
methods. This commands in menus above this number are never
unchecked or disabled by MacApp.
Identifies the Debug menu.
10/3/88
Page 1
Command numbers
The command numbers listed here are passed to your methods, generally to
gTargetDoMenuCommand Most are passed as a result of the user picking a menu command;
command numbers are alsO used for other types of commands, such as typing or mouse
commands. When the description says "MacApp catches this," that means that the MacApp
DoMenuCommand methods will handle those command numbers, often by calling application
methods.
cNoCommand
Command number representing no command. MacApp catches this.
cAboutApp
Identifies the About <AppNme>..• command. MacApp catches this.
File menu commands
Identifies the New command MacApp catches this. (See also
cNew .. 10;
cNewLast.)
cNewLast -
19;
cSave .. 30;
cClose -
31;
cSaveAs .. 32;
cSaveCopy -
33;
cRevert .. 34;
cOpen -
20;
cOpenLast .. 29;
cPaqeSetup -
176;
cPr intOne -
177;
cPrint -
178;
cPrintToFile -
179;
cPrFileBase - 176;
cPrFileMax .. 195;
cPrViewBase .. 201;
cPrViewMax .. 250;
cQuit -
36;
MacApp 2.0 Globais
Identifies the last New command MacApp provides a range of New
commands for applications that have diff…
Showing first 3,000 characters of 37,364 total. Open the full document →