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.
Sources/MSGlobals.c
// MSGlobals.c |
// |
// Original version by Jon Lansdell and Nigel Humphreys. |
// 4.0 and 3.1 updates by Greg Sutton. |
// ©Apple Computer Inc 1996, all rights reserved. |
/* |
Changes for 3.1: |
12-Oct-95 : CW : Added Metrowerks condition for "qd" definition. |
Added gHasDragManager flag, gDragTrackingHandlerUPP and |
gDragReceiveHandlerUPP Drag Manager UPPs (all globals). |
Changes for 4.0: |
29-Feb-96 : GS : Added gAppRec which holds the script and FSSpec |
information for the application |
*/ |
#define __COMPGLOBALS__ |
#include "MSGlobals.h" |
#if !defined(THINK_C) && !defined(__MWERKS__) // These declares "qd" in their runtime |
QDGlobals qd; |
#endif |
AppRec gAppRec; |
short gNewDocCount; |
MenuHandle myMenus[kLastMenu+1]; |
short gFontMItem; |
Boolean gQuitting; |
Cursor editCursor; |
Cursor waitCursor; |
Boolean gInBackground; |
// now for the environment variables set up by Gestalt |
Boolean gGestaltAvailable; |
Boolean gAppleEventsImplemented; |
Boolean gAliasManagerImplemented; |
Boolean gEditionManagerImplemented; |
Boolean gOutlineFontsImplemented; |
Boolean gRecordingImplemented; |
Boolean gHasDragManager; // Is the Drag Manager available? |
Boolean gGXIsPresent; |
Boolean gHasProcessManager; |
ControlActionUPP gHScrollActionUPP; |
ControlActionUPP gVScrollActionUPP; |
UserItemUPP gDefaultButtonUPP; |
DragTrackingHandlerUPP gDragTrackingHandlerUPP; |
DragReceiveHandlerUPP gDragReceiveHandlerUPP; |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14