[53719] branches/gsoc09-gui/MacPorts_Framework

juanger at macports.org juanger at macports.org
Sun Jul 12 14:47:00 PDT 2009


Revision: 53719
          http://trac.macports.org/changeset/53719
Author:   juanger at macports.org
Date:     2009-07-12 14:47:00 -0700 (Sun, 12 Jul 2009)
Log Message:
-----------
Install action with MPPortProcess implementation

Modified Paths:
--------------
    branches/gsoc09-gui/MacPorts_Framework/MPInterpreter.m
    branches/gsoc09-gui/MacPorts_Framework/MPPortProcess.h
    branches/gsoc09-gui/MacPorts_Framework/MPPortProcess.m

Modified: branches/gsoc09-gui/MacPorts_Framework/MPInterpreter.m
===================================================================
--- branches/gsoc09-gui/MacPorts_Framework/MPInterpreter.m	2009-07-12 20:47:55 UTC (rev 53718)
+++ branches/gsoc09-gui/MacPorts_Framework/MPInterpreter.m	2009-07-12 21:47:00 UTC (rev 53719)
@@ -675,8 +675,8 @@
     [aTask setArguments:args];
     [aTask launch];
     
-    NSLog(@"Going to sleep");
-    [NSThread sleepUntilDate:[NSDate dateWithTimeIntervalSinceNow:10000]];
+//    NSLog(@"Going to sleep");
+    [NSThread sleepUntilDate:[NSDate dateWithTimeIntervalSinceNow:10]];
     id theProxy = [NSConnection
                 rootProxyForConnectionWithRegisteredName:@"MPPortProcess"
                 host:nil];

Modified: branches/gsoc09-gui/MacPorts_Framework/MPPortProcess.h
===================================================================
--- branches/gsoc09-gui/MacPorts_Framework/MPPortProcess.h	2009-07-12 20:47:55 UTC (rev 53718)
+++ branches/gsoc09-gui/MacPorts_Framework/MPPortProcess.h	2009-07-12 21:47:00 UTC (rev 53719)
@@ -6,12 +6,11 @@
 //  Copyright 2009 UNAM. All rights reserved.
 //
 
-#include <Tcl/Tcl.h>
+#include <tcl.h>
 
 @interface MPPortProcess : NSObject {
     Tcl_Interp *interpreter;
     NSString *PKGPath;
-    NSString *InitTclPath;
 }
 
 - (oneway void)evaluateString:(bycopy id)statement;

Modified: branches/gsoc09-gui/MacPorts_Framework/MPPortProcess.m
===================================================================
--- branches/gsoc09-gui/MacPorts_Framework/MPPortProcess.m	2009-07-12 20:47:55 UTC (rev 53718)
+++ branches/gsoc09-gui/MacPorts_Framework/MPPortProcess.m	2009-07-12 21:47:00 UTC (rev 53719)
@@ -17,9 +17,8 @@
 
 @implementation MPPortProcess
 
-- (id)initWithPKGPath:(NSString*)pkgPath initTclPath:(NSString*)tclPath {
+- (id)initWithPKGPath:(NSString*)pkgPath {
     PKGPath = pkgPath;
-    InitTclPath = tclPath;
     [self initializeInterpreter];
     return self;
 }
@@ -67,9 +66,9 @@
     NSConnection *portProcessConnection; 
     portProcessConnection = [NSConnection defaultConnection];
     NSString *PKGPath = [[NSString alloc] initWithCString:argv[1] encoding:NSUTF8StringEncoding];
-    NSString *portProcessInitPath = [[NSString alloc] initWithCString:argv[2] encoding:NSUTF8StringEncoding];
+//    NSString *portProcessInitPath = [[NSString alloc] initWithCString:argv[2] encoding:NSUTF8StringEncoding];
     
-    MPPortProcess *portProcess = [[MPPortProcess alloc] initWithPKGPath:PKGPath initTclPath:portProcessInitPath];
+    MPPortProcess *portProcess = [[MPPortProcess alloc] initWithPKGPath:PKGPath];
     
     // Vending portProcess
     [portProcessConnection setRootObject:portProcess];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090712/6ea72106/attachment.html>


More information about the macports-changes mailing list