This is CText.m in view mode; [Download] [Up]
#import "CText.h" #import "ComScroll.h" #import <appkit/Application.h> @implementation CText - setController:sender; { controller = sender ; return self ; } - keyDown:(NXEvent *)theEvent; { char buf[2] ; [super keyDown:theEvent] ; buf[0] = theEvent->data.key.charCode ; buf[1] = 0 ; if (buf[0] && controller) [(ComScroll *)controller sendToMaster:buf] ; return self ; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.