This is ImmediateButton.m in view mode; [Download] [Up]
// ImmediateButton.m // Project: Rulers // // Stephan Wacker // 93-02-11 // // An ImmediateButton is a Button object that performs its action immediately // when the mouse button is pressed, instead of waiting until it is released. // #import "ImmediateButton.h" @implementation ImmediateButton - mouseDown: (NXEvent *) event // Make the Button perform its action. { [self performClick: self]; return self; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.