This is SwitchBoxInspector.m in view mode; [Download] [Up]
#import "version.h" #import "SwitchBox.h" #import "SwitchBoxInspector.h" @implementation SwitchBoxInspector - init { char buf[MAXPATHLEN + 1]; [super init]; [[NXBundle bundleForClass:[SwitchBox class]] getPath:buf forResource:"SwitchBoxInspector" ofType:"nib"]; [NXApp loadNibFile:buf owner:self withNames:NO fromZone:[self zone]]; return self; } - ok:sender { [[NXApp mainWindow] makeFirstResponder:[NXApp mainWindow]]; [window endEditingFor:self]; [object setDefaultPanel: [initialText intValue]]; return [super ok:sender]; } - revert:sender { [window endEditingFor:self]; [initialText setIntValue: [object defaultPanel]]; return[super revert:sender]; } - (BOOL)wantsButtons { return NO; } - setVersionText: anObject { [anObject setStringValue: version]; return self; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.