home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / DatabaseKit / AddressBook / AddressBook_main.m next >
Text File  |  1992-07-09  |  525b  |  20 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. #include <sys/param.h>
  7. #import <objc/NXBundle.h>
  8. #import <appkit/Application.h>
  9.  
  10. void main(int argc, char *argv[]) {
  11.     char    path[MAXPATHLEN+1];
  12.     NXApp = [Application new];
  13.     if ([[NXBundle mainBundle] getPath:path forResource:"AddressBook" ofType:"nib"]) {
  14.     [NXApp loadNibFile:path owner:NXApp withNames:NO fromZone:[NXApp zone]];
  15.     }
  16.     [NXApp run];
  17.     [NXApp free];
  18.     exit(0);
  19. }
  20.