home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / EleOfC++ vrs 0.1 / Scribble / main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-14  |  580 b   |  32 lines  |  [TEXT/KAHL]

  1. /*
  2. ** main function for Scribble applictation
  3. **
  4. ** Copyright © 1991 Mark Gross 
  5. ** (RR2, Box 84, Clayville, NY 13322);         
  6. ** this file may be published everywhere, but no charge
  7. ** may be made for its use.  Please contact me about any bugs found.
  8. */
  9.  
  10. #include "TScribbleApp.h"
  11. #include <oops.h>
  12.  
  13. main()
  14. {
  15.     TScribbleApp    *theApp;
  16.     
  17.     MoreMasters();
  18.     MoreMasters();
  19.  
  20.     theApp = (TScribbleApp *)new(TScribbleApp);
  21.     theApp->Init();
  22.     
  23.     if(theApp->InitApp() )
  24.     {
  25.         if(!theApp->OpenDocFromFinder() )
  26.             theApp->OpenNewDoc();
  27.             
  28.         theApp->EventLoop();
  29.         theApp->CleanUp();
  30.     }
  31. }/*the end*/
  32.