Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Headers/ApplicationResources.h
/* |
File: ApplicationResources.h |
Contains: |
Written by: C++ Application shell. |
ApplicationResources contains the common resource values for both resources and code. |
This header file is used from both code and resource files, that's why we are using #defines. |
Copyright: Copyright © 1992-1999 by Apple Computer, Inc., All Rights Reserved. |
You may incorporate this Apple sample source code into your program(s) without |
restriction. This Apple sample source code has been provided "AS IS" and the |
responsibility for its operation is yours. You are not permitted to redistribute |
this Apple sample source code as "Apple sample source code" after having made |
changes. If you're going to re-distribute the source, we require that you make |
it clear in the source that the code was descended from Apple sample source |
code, but that you've made changes. |
Change History (most recent first): |
8/18/1999 Karl Groethe Updated for Metrowerks Codewarror Pro 2.1 |
*/ |
// Define all the default application resource values |
// _________________________________________________________________________________________________________ // |
// MENU VALUES |
// Note that each menu entry has a specified command number, where you just add the menu entry to the |
// menu itself, as in mApple = 128, and cAbout 1, and CaboutCommand = 1281. If you have more than 9 menu |
// entries, then just continue with 10, 11, as in 12910 (where mFile is 129). |
// MBAR itself |
#define mAppMBAR 100 |
// Apple menu |
#define mApple 128 |
#define cAbout 1 |
#define cAboutCommand 1281 |
// File menu |
#define mFile 129 |
#define cNew 1 |
#define cNewCommand 1291 |
#define COpen 2 |
#define cOpenCommand 1292 |
// --- 3 |
#define cClose 4 |
#define cCloseCommand 1294 |
#define cSave 5 |
#define cSaveCommand 1295 |
#define cSaveAs 6 |
#define cSaveAsCommand 1296 |
#define cRevert 7 |
#define cRevertCommand 1297 |
// --- 8 |
#define cPageSetup 9 |
#define cPageSetupCommand 1299 |
#define cPrint 10 |
#define cPrintCommand 12910 |
// --- 11 |
#define cQuit 12 |
#define cQuitCommand 12912 |
// Edit menu |
#define mEdit 130 |
#define cUndo 1 |
#define cUndoCommand 1301 |
#define cCut 3 |
#define cCutCommand 1303 |
#define cCopy 4 |
#define cCopyCommand 1304 |
#define cPaste 5 |
#define cPasteCommand 1305 |
#define cClear 6 |
#define cClearCommand 1306 |
// _________________________________________________________________________________________________________ // |
// APPLE EVENTS |
#define kCoreAEDispatchTable 500 // Core events 'aedt' resource |
#define cAppleEventReply 501 |
#define kGUIAEDispatchTable 600 |
// _________________________________________________________________________________________________________ // |
// USER INTERACTION RESOURCES |
#define kUserAlert 100 // our default user alert for presenting core problems |
// _________________________________________________________________________________________________________ // |
/* Change History (most recent last): |
No Init. Date Comment |
1 khs 11/15/92 New file |
2 khs 1/14/93 Cleanup |
*/ |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14