home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Lines / Lines_main.m next >
Text File  |  1992-02-09  |  502b  |  21 lines

  1. /* Generated by the NeXT Project Builder 
  2.    NOTE: Do NOT change this file -- Project Builde!0Gintains it.
  3. */
  4.  
  5. #import <stdlib.h>
  6. #import <sys/param.h>
  7. #import <objc/NXBundle.h>
  8.  
  9. #import "MyApp.h"
  10.  
  11. void main(int argc, char *argv[]) {
  12.     char    path[MAXPATHLEN+1];
  13.     
  14.     NXApp = [MyApp new];
  15.     if ([[NXBundle mainBundle] getPath:path forResource:"Lines" ofType:"nib"])
  16.     if ([NXApp loadNibFile:path owner:NXApp withNames:NO fromZone:[NXApp zone]])
  17.         [NXApp run];
  18.     [NXApp free];
  19.     exit(0);
  20. }
  21.