ftp.nice.ch/pub/next/developer/resources/palettes/PSActionPalette.NI.bs.tar.gz#/PSActionPalette/PSActionInspector.m

This is PSActionInspector.m in view mode; [Download] [Up]

#import "PSAction.h"
#import "PSActionInspector.h"

@implementation PSActionInspector

- init
{
	char buffer[MAXPATHLEN];
	id bundle = [NXBundle bundleForClass:[PSAction class]];

	[super init];

	[bundle getPath:buffer forResource:"PSActionInspector" ofType:"nib"];

	[NXApp loadNibFile:buffer owner:self withNames:NO fromZone:[self zone]];

	return self;
}

- ok:sender
{
	[object setEnabled:![disabledSwitch state]];

	[object setCacheCleared:[clearSwitch state]];

	[object setErrorReported:[errorsSwitch state]];

	return [super ok:sender];
}

- revert:sender
{
	[disabledSwitch setState:![object isEnabled]];

	[clearSwitch setState:[object isCacheCleared]];

	[errorsSwitch setState:[object isErrorReported]];

	return [super revert:sender];
}

- (BOOL) wantsButtons { return NO; }

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.