MacApp 2.0 Globals
MacApp 2.0 Globals
Macintosh · 1988 · PDF
| Filename | MacApp_2.0_Globals_19881003.pdf |
|---|---|
| Size | 1.47 MB |
| Year | 1988 |
| Subsection | developer / MacApp_2.0 |
| 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
(
© 1988 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 defined 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
kcopyright = •copyright
1984, 1985, 1986,
1987, 1988
Apple Computer Inc.•;
Used to store the copyright notice for MacApp.
Menu constants
kMBaroisplayed "'
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
initializ.ed.
The following constants identify the standard menus shared by all Macintosh applications.
kMBarHierarchical
mApple "' l;
mFile
2;
mEdit = 3;
mLastMenu = 63;
mDebug
= 900;
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.
(~.
MacApp 2.0 Globals
10/3/88
Page 1
Command numbers
The command numbers listed here are passed to your methods, generally to
gTarget.DoMenuCommand. 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;
cNewLaat.)
cNewLast = 19;
csave = 30;
cClose = 31;
cSaveAs = 32;
cSaveCopy
= 33;
cRevert = 34;
cOpen = 20;
cOpenLast = 29;
cPageSetup
= 176;
cPrintOne = 177;
cPrint = 178;
cPrintToFile •
179;
cPrFileBase a 176;
cPrFileMax = 195;
cPrViewBase = 201;
cPrViewMax = 250;
cQuit = 36;
MacApp 2.0 Globals
Identifies the last New command. MacApp provides a range of New
commands for applications that have different documen…
Showing first 3,000 characters of 37,431 total. Open the full document →