ftp.nice.ch/pub/next/developer/resources/classes/UHInspector.1.2.N.bs.tar.gz#/UHInspector_1.2/InspectorDemo/Sine.m

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

#import "Sine.h"

@implementation Sine
 
- (double)amplitude {return amplitude;}

- (double)frequency {return frequency;}

- setAmplitude:(double)value{
	amplitude=value;
	return self;
}
- setFrequency:(double)value{
	frequency=value;
	return self;
}

- compute
{
	/*  Here is where this object would "do its thing" based on the parameter
		values set via the inspector.  In this example, we do nothing... */
	return self;
}

- (const char *)getInspectorClassName
{
	return "SineInspector";
}

- setLabel:(const char *)aString
{
	if(label)NXZoneFree([self zone],label);
	label=NXCopyStringBufferFromZone(aString,[self zone]);
	return self;
}

- (const char *)label {return label;}

@end

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