mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-14 06:31:31 +00:00
accessors for the pipe delegate to have the debugger
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@39704 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ce45c22ac0
commit
94cdea40d3
4 changed files with 21 additions and 0 deletions
|
@ -136,6 +136,7 @@ static NSImage *downImage = nil;
|
|||
viewDelegate = [[PipeDelegate alloc] init];
|
||||
[debuggerView setDelegate:viewDelegate];
|
||||
[viewDelegate setTextView:debuggerView];
|
||||
[viewDelegate setDebugger:self];
|
||||
[viewDelegate release];
|
||||
}
|
||||
return self;
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
@class NSTextView;
|
||||
@class NSArray;
|
||||
@class NSString;
|
||||
@class PCDebugger;
|
||||
|
||||
@protocol PCDebuggerViewDelegateProtocol <NSObject>
|
||||
|
||||
|
@ -36,6 +37,8 @@
|
|||
|
||||
- (NSTextView *)textView;
|
||||
- (void)setTextView: (NSTextView *)tv;
|
||||
- (PCDebugger *)debugger;
|
||||
- (void)setDebugger:(PCDebugger *)dbg;
|
||||
|
||||
- (void) runProgram: (NSString *)path
|
||||
inCurrentDirectory: (NSString *)directory
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
@interface PipeDelegate : NSObject <PCDebuggerViewDelegateProtocol>
|
||||
{
|
||||
PCDebugger *debugger;
|
||||
NSTextView *tView;
|
||||
NSTask *task;
|
||||
NSFileHandle *stdinHandle;
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#import "PipeDelegate.h"
|
||||
#import "PCDebugger.h"
|
||||
|
||||
#ifndef NOTIFICATION_CENTER
|
||||
#define NOTIFICATION_CENTER [NSNotificationCenter defaultCenter]
|
||||
|
@ -72,6 +73,21 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (PCDebugger *)debugger
|
||||
{
|
||||
return debugger;
|
||||
}
|
||||
|
||||
- (void)setDebugger:(PCDebugger *)dbg
|
||||
{
|
||||
if (debugger != dbg)
|
||||
{
|
||||
[debugger release];
|
||||
debugger = dbg;
|
||||
[debugger retain];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSColor *)userInputColor
|
||||
{
|
||||
return userInputColor;
|
||||
|
|
Loading…
Reference in a new issue