File:  [NeXTSTEP 3.3 examples] / Examples / DatabaseKit / AddressBook / AddressBook_main.m
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:49:00 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

/* Generated by the NeXT Project Builder 
   NOTE: Do NOT change this file -- Project Builder maintains it.
*/

#import <stdlib.h>
#include <sys/param.h>
#import <objc/NXBundle.h>
#import <appkit/Application.h>

void main(int argc, char *argv[]) {
    char	path[MAXPATHLEN+1];
    NXApp = [Application new];
    if ([[NXBundle mainBundle] getPath:path forResource:"AddressBook" ofType:"nib"]) {
	[NXApp loadNibFile:path owner:NXApp withNames:NO fromZone:[NXApp zone]];
    }
    [NXApp run];
    [NXApp free];
    exit(0);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.