home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / GnuSource / Chess-9 / Chess_main.m < prev    next >
Text File  |  1992-03-09  |  502b  |  21 lines

  1. /* Generated by the NeXT Project Builder 
  2.    NOTE: Do NOT change this file -- Project Builder maintains it.
  3. */
  4.  
  5. #import <stdlib.h>
  6. #import <sys/param.h>
  7. #import <objc/NXBundle.h>
  8.  
  9. #import "Chess.h"
  10.  
  11. void main(int argc, char *argv[]) {
  12.     char    path[MAXPATHLEN+1];
  13.     
  14.     NXApp = [Chess new];
  15.     if ([[NXBundle mainBundle] getPath:path forResource:"Chess" 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.