This is MySlider.m in view mode; [Download] [Up]
// MySlider.m // // a simple slider subclass that lets me save the sliders value after // the mouse comes up. // // You may freely copy, distribute, and reuse the code in this example. // NeXT disclaims any warranty of any kind, expressed or implied, as to its // fitness for any particular use. #import "MySlider.h" #import "Thinker.h" @implementation MySlider - mouseDown:(NXEvent *)theEvent { [super mouseDown:theEvent]; [[self target] saveSliderValue]; return self; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.