This is MyBox.m in view mode; [Download] [Up]
#import "MyBox.h" #import "KeyInspector.h" @implementation MyBox - mouseDown:(NXEvent *)theEvent; { // theEvent->location.x // theEvent->location.y [controller setX:theEvent->location.x andY:theEvent->location.y andFlags:theEvent->flags]; return [super mouseDown:theEvent]; } - (void)setController:value; { controller = value; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.