Author: rmottola
Date: Thu Apr 28 15:56:31 2016
New Revision: 39704

URL: http://svn.gna.org/viewcvs/gnustep?rev=39704&view=rev
Log:
accessors for the pipe delegate to have the debugger

Modified:
    apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m
    
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebuggerViewDelegateProtocol.h
    apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h
    apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m

Modified: apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m?rev=39704&r1=39703&r2=39704&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m       
(original)
+++ apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m       
Thu Apr 28 15:56:31 2016
@@ -136,6 +136,7 @@
       viewDelegate = [[PipeDelegate alloc] init];
       [debuggerView setDelegate:viewDelegate];
       [viewDelegate setTextView:debuggerView];
+      [viewDelegate setDebugger:self];
       [viewDelegate release];
     }
   return self;

Modified: 
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebuggerViewDelegateProtocol.h
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebuggerViewDelegateProtocol.h?rev=39704&r1=39703&r2=39704&view=diff
==============================================================================
--- 
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebuggerViewDelegateProtocol.h
   (original)
+++ 
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebuggerViewDelegateProtocol.h
   Thu Apr 28 15:56:31 2016
@@ -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

Modified: 
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h?rev=39704&r1=39703&r2=39704&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h     
(original)
+++ apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h     
Thu Apr 28 15:56:31 2016
@@ -28,6 +28,7 @@
 
 @interface PipeDelegate : NSObject <PCDebuggerViewDelegateProtocol>
 {
+  PCDebugger *debugger;
   NSTextView *tView;
   NSTask *task;
   NSFileHandle *stdinHandle;

Modified: 
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m?rev=39704&r1=39703&r2=39704&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m     
(original)
+++ apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m     
Thu Apr 28 15:56:31 2016
@@ -36,6 +36,7 @@
 #include <string.h>
 
 #import "PipeDelegate.h"
+#import "PCDebugger.h"
 
 #ifndef NOTIFICATION_CENTER
 #define NOTIFICATION_CENTER [NSNotificationCenter defaultCenter]
@@ -69,6 +70,21 @@
       [tView release];
       tView = tv;
       [tView retain];
+    }
+}
+
+- (PCDebugger *)debugger
+{
+  return debugger;
+}
+  
+- (void)setDebugger:(PCDebugger *)dbg
+{
+  if (debugger != dbg)
+    {
+      [debugger release];
+      debugger = dbg;
+      [debugger retain];
     }
 }
 


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to