apps-projectcenter/Modules/Debuggers/ProjectCenter/PCDebuggerView.m
Riccardo Mottola 0f85f9390c interpret char from the view and send them to the debugger std in
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27394 72102866-910b-0410-8b05-ffd578937521
2008-12-22 00:39:45 +00:00

31 lines
634 B
Objective-C

/* All Rights reserved */
#include <AppKit/AppKit.h>
#include "PCDebuggerView.h"
@implementation PCDebuggerView
/** set the controlling debugger instance */
-(void)setDebugger:(PCDebugger *)theDebugger
{
debugger = theDebugger;
}
/** respond to key events and pipe them down to the debugger */
-(BOOL)performKeyEquivalent: (NSEvent*)theEvent
{
NSString *chars;
chars = [theEvent characters];
if ([chars length] == 1)
{
unichar c;
c = [chars characterAtIndex: 0];
NSLog(@"character: %c", c);
[debugger putChar:c];
}
return [super performKeyEquivalent:theEvent];
}
@end