This is BBSlider.m in view mode; [Download] [Up]
/* BBSlider.m * * This our special slider obejct. The only thing I am missing in NeXT original * is that I never get informed of mouseDown & Up actions. To allow better * rotation operations we did modify the mouseDown method here. * * For interface-info see the header file. The comments in this file mostly * cover only the real implementation details. * * Written by: Thomas Engel * Created: 26.03.1994 (Copyleft) * Last modified: 26.03.1994 */ #import "BBSlider.h" #import "Misc3DMouseDriver.h" @implementation BBSlider - mouseDown:(NXEvent *)theEvent { id target; target = [cell target]; if( [target respondsTo:@selector(transformationWillStart:)] ) [target transformationWillStart:self]; [super mouseDown:theEvent]; if( [target respondsTo:@selector(transformationDidEnd:)] ) [target transformationDidEnd:self]; return self; } @end /* * History: 26.03.94 First test. Should help to notify rotaion start/end. * * * Bugs: - No. */
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.