#import "ResistorInspector.h"

@implementation ResistorInspector
 
- doRevert:sender
{
	[resistanceSlider setDoubleValue:[object resistance]];
	[resistanceText setDoubleValue:[object resistance]];
	return self;
}

- doOk:sender
{
	[object setResistance:[sender doubleValue]];
	[resistanceText setDoubleValue:[sender doubleValue]];
	return self;
}

- takeMaxResistanceFrom:sender
{
	[resistanceSlider setMaxValue:[sender doubleValue]];
	return self;
}

@end