This is MySlider.m in view mode; [Download] [Up]
/************************************************** * SynthBuilder * Copyright 1993 Nick Porcaro All Rights Reserved **************************************************/ #import "MySlider.h" #import "MySliderCell.h" @implementation MySlider {} + newFrame:(const NXRect *)frameRect /* We fool Interface Builder into creating an object of our class. */ { [super setCellClass:[MySliderCell class]]; self = [super newFrame:frameRect]; [super setCellClass:[SliderCell class]]; return self; } - setReturnValue:(double)aValue /* Set the value that the slider will snap back to. */ { returnValue = aValue; [[self cell] setReturnValue:aValue]; return self; } - sendAction:(SEL)theAction to:theTarget { return [super sendAction:theAction to:theTarget]; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.