This is EtermApp.m in view mode; [Download] [Up]
#import "EtermApp.h"
#import "BlackHand.h"
#import <stdlib.h>
#import <strings.h>
#import <appkit/Application.h>
#import <appkit/Window.h>
#import <defaults.h>
@implementation EtermApp
- etermHandle
{
return etermHandle;
}
// We're ready to start. Fire up the application.
- appDidInit:(id)sender
{
// [etermHandle setup];
// [[etermHandle window] makeFirstResponder:etermHandle];
DPSSetDeadKeysEnabled(DPSGetCurrentContext(),NO);
[etermHandle startApps];
if (!strcmp(NXGetDefaultValue(AppsName, "NXAutoLaunch"), "YES") &&
!strcmp(NXGetDefaultValue(AppsName, "HideOnAutoLaunch"), "YES")) {
[NXApp hide: nil];
}
return self;
}
// Intercept the Quit command and replace it with what ever commands
// it needs to get out of the program.
-terminate:(id)sender
{
if (sender && [etermHandle quitApps]) return self;
return [NXApp terminate:sender];
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.