home *** CD-ROM | disk | FTP | other *** search
- //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- // //
- // //
- // Copyright PennyWise Software, 1994. //
- // //
- // Part of the PennyWise Software Application Framework //
- // //
- // //
- // Main.c Written by Peter Kaplan //
- // //
- // //
- //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- // //
- // This is the main for the application. It will initialize the //
- // macintosh toolbox, initialize the appliaction, and then go into the //
- // main event loop. //
- // //
- //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- // local defines
- #define SLEEP_VALUE 20
- #define MASTER_POINTERS 10
- #define STACK_GROWTH 0
- //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- // local includes
- #include "InitApplication.h"
- #include <PWFramework.h>
- #include <PWWindowList.h>
- #include "WindowID.h"
- //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- Boolean GlobalIdle(EventRecord *);
- //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- void main()
- {
-
- PWInitMac(MASTER_POINTERS, STACK_GROWTH, kMAX_WINDOW_IDS); // Init the Mac
- InitApplication(); // Init the App
- UnloadSeg(InitApplication); // Unload the Init Seg
- PWMainEventLoop(SLEEP_VALUE, FALSE); // Enter Event Loop
- }
- //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- // This is a function that MUST be defined. If you do not wish have a global
- // idle loop you must still declare it and then pass !ALLOW_GLOBAL_IDLE
- // to PWMainEventLoop.
- Boolean GlobalIdle(EventRecord *theEvent)
- {
- return FALSE;
- }