This is Browser_main.m in view mode; [Download] [Up]
/* Generated by the NeXT Interface Builder. modified by the author */
/* File: Browser_main.m */
#include <stdlib.h>
#import "Browser.h"
#import <appkit/Application.h>
void main(int argc, char *argv[]) /* main entry point */
{
BOOL notFound= YES;
char **language;
NXApp = [Application new]; /* new Application object */
if( (language= (char **)[NXApp systemLanguages]) != NULL) /* system languages */
{
do
{
notFound= ([NXApp loadNibSection:*language++ owner:NXApp] == nil); /* NIB section ? */
}
while( notFound && (*language != NULL));
}
if( notFound) /* NIB section not found or no language selected ? */
{
[NXApp loadNibSection:"English" owner:NXApp]; /* english NIB section */
}
[NXGetNamedObject( "Browser", NXApp) startup]; /* startup Browser */
[NXApp run]; /* run the Application */
[NXApp free]; /* free the Application object */
exit(0);
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.