mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-22 19:31:56 +00:00
* 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
31 lines
642 B
Objective-C
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
|