apps-projectcenter/Modules/Debuggers/ProjectCenter/PCDebuggerView.m
Gregory John Casamento dad9dde30e * Modules/Debuggers/ProjectCenter/PCDebugger.h
* Modules/Debuggers/ProjectCenter/PCDebugger.m
	* Modules/Debuggers/ProjectCenter/PCDebuggerView.m: Add code
	to write to the file desicriptor.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27410 72102866-910b-0410-8b05-ffd578937521
2008-12-23 00:49:57 +00:00

31 lines
642 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 YES; // [super performKeyEquivalent:theEvent];
}
@end