add some NSTask testing

This commit is contained in:
optixx 2009-09-02 18:07:15 +02:00
parent 58b422771a
commit 1fb3cfdfd9
13 changed files with 212 additions and 75 deletions

View File

@ -24,9 +24,20 @@
- (IBAction)romUpload:(id)sender { - (IBAction)romUpload:(id)sender {
NSLog(@"romUpload"); NSLog(@"romUpload");
CommandWrapper *cw=[[CommandWrapper alloc] init]; CommandWrapper *cw=[[CommandWrapper alloc] init];
[cw doPipedCommand]; [cw doPipedCommand];
NSString* myString = [[NSString alloc] init];
myString = @"test";
[textField setStringValue:myString];
if ( [myString length] != 0) {
NSLog(@"message: %@", myString);
return;
}
} }
-(NSSize)windowWillResize:(NSWindow *)send toSize:(NSSize) framesize; -(NSSize)windowWillResize:(NSWindow *)send toSize:(NSSize) framesize;

View File

@ -41,9 +41,8 @@
encoding:NSASCIIStringEncoding]; // convert NSData -> NSString encoding:NSASCIIStringEncoding]; // convert NSData -> NSString
NSLog(@"doPipedCommand: %@", textField);
NSLog(@"doPipedCommand: %@", string); NSLog(@"doPipedCommand: %@", string);
[textField setString:string]; [textField setStringValue:string];
[string release]; [string release];
[pipe release]; [pipe release];

View File

@ -197,48 +197,7 @@
<key>Notifications</key> <key>Notifications</key>
<array/> <array/>
<key>OpenEditors</key> <key>OpenEditors</key>
<array> <array/>
<dict>
<key>Content</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>630AE62A104D6EC40091039C</string>
<key>PBXProjectModuleLabel</key>
<string>CommandWrapper.m</string>
<key>PBXSplitModuleInNavigatorKey</key>
<dict>
<key>Split0</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>630AE62B104D6EC40091039C</string>
<key>PBXProjectModuleLabel</key>
<string>CommandWrapper.m</string>
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>630AE62C104D6EC40091039C</string>
<key>history</key>
<array>
<string>630AE624104D6E950091039C</string>
</array>
</dict>
<key>SplitCount</key>
<string>1</string>
</dict>
<key>StatusBarVisibility</key>
<true/>
</dict>
<key>Geometry</key>
<dict>
<key>Frame</key>
<string>{{0, 20}, {992, 721}}</string>
<key>PBXModuleWindowStatusBarHidden2</key>
<false/>
<key>RubberWindowFrame</key>
<string>15 116 992 762 0 0 1440 878 </string>
</dict>
</dict>
</array>
<key>PerspectiveWidths</key> <key>PerspectiveWidths</key>
<array> <array>
<integer>-1</integer> <integer>-1</integer>
@ -270,8 +229,6 @@
<key>Layout</key> <key>Layout</key>
<array> <array>
<dict> <dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key> <key>ContentConfiguration</key>
<dict> <dict>
<key>PBXBottomSmartGroupGIDs</key> <key>PBXBottomSmartGroupGIDs</key>
@ -316,8 +273,6 @@
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key> <key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
<array> <array>
<array> <array>
<integer>7</integer>
<integer>1</integer>
<integer>0</integer> <integer>0</integer>
</array> </array>
</array> </array>
@ -352,12 +307,14 @@
<key>Dock</key> <key>Dock</key>
<array> <array>
<dict> <dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key> <key>ContentConfiguration</key>
<dict> <dict>
<key>PBXProjectModuleGUID</key> <key>PBXProjectModuleGUID</key>
<string>1CE0B20306471E060097A5F4</string> <string>1CE0B20306471E060097A5F4</string>
<key>PBXProjectModuleLabel</key> <key>PBXProjectModuleLabel</key>
<string>CommandWrapper.h</string> <string>AppController.m</string>
<key>PBXSplitModuleInNavigatorKey</key> <key>PBXSplitModuleInNavigatorKey</key>
<dict> <dict>
<key>Split0</key> <key>Split0</key>
@ -365,19 +322,19 @@
<key>PBXProjectModuleGUID</key> <key>PBXProjectModuleGUID</key>
<string>1CE0B20406471E060097A5F4</string> <string>1CE0B20406471E060097A5F4</string>
<key>PBXProjectModuleLabel</key> <key>PBXProjectModuleLabel</key>
<string>CommandWrapper.h</string> <string>AppController.m</string>
<key>_historyCapacity</key> <key>_historyCapacity</key>
<integer>0</integer> <integer>0</integer>
<key>bookmark</key> <key>bookmark</key>
<string>630AE629104D6EC40091039C</string> <string>630AE65F104D76D60091039C</string>
<key>history</key> <key>history</key>
<array> <array>
<string>630AE5FB104D6B680091039C</string>
<string>630AE608104D6C580091039C</string> <string>630AE608104D6C580091039C</string>
<string>630AE618104D6D240091039C</string> <string>630AE63B104D74E40091039C</string>
<string>630AE619104D6D240091039C</string> <string>630AE648104D753E0091039C</string>
<string>630AE627104D6EC40091039C</string> <string>630AE649104D753E0091039C</string>
<string>630AE628104D6EC40091039C</string> <string>630AE64A104D753E0091039C</string>
<string>630AE64B104D753E0091039C</string>
</array> </array>
</dict> </dict>
<key>SplitCount</key> <key>SplitCount</key>
@ -575,13 +532,13 @@
<integer>5</integer> <integer>5</integer>
<key>WindowOrderList</key> <key>WindowOrderList</key>
<array> <array>
<string>630AE660104D76D60091039C</string>
<string>630AE57D104D18A40091039C</string> <string>630AE57D104D18A40091039C</string>
<string>630AE57E104D18A40091039C</string> <string>630AE57E104D18A40091039C</string>
<string>1CD10A99069EF8BA00B06720</string> <string>1CD10A99069EF8BA00B06720</string>
<string>631E1885104C5D80001A8B18</string> <string>631E1885104C5D80001A8B18</string>
<string>1C78EAAD065D492600B07095</string> <string>1C78EAAD065D492600B07095</string>
<string>/Users/david/Devel/arch/avr/code/quickdev16/tools/Quickdev16/Quickdev16.xcodeproj</string> <string>/Users/david/Devel/arch/avr/code/quickdev16/tools/Quickdev16/Quickdev16.xcodeproj</string>
<string>630AE62A104D6EC40091039C</string>
</array> </array>
<key>WindowString</key> <key>WindowString</key>
<string>0 115 936 763 0 0 1440 878 </string> <string>0 115 936 763 0 0 1440 878 </string>

View File

@ -112,6 +112,22 @@
630AE628104D6EC40091039C /* PBXTextBookmark */ = 630AE628104D6EC40091039C /* PBXTextBookmark */; 630AE628104D6EC40091039C /* PBXTextBookmark */ = 630AE628104D6EC40091039C /* PBXTextBookmark */;
630AE629104D6EC40091039C /* PBXTextBookmark */ = 630AE629104D6EC40091039C /* PBXTextBookmark */; 630AE629104D6EC40091039C /* PBXTextBookmark */ = 630AE629104D6EC40091039C /* PBXTextBookmark */;
630AE62C104D6EC40091039C /* PBXTextBookmark */ = 630AE62C104D6EC40091039C /* PBXTextBookmark */; 630AE62C104D6EC40091039C /* PBXTextBookmark */ = 630AE62C104D6EC40091039C /* PBXTextBookmark */;
630AE638104D74C20091039C /* PBXBookmark */ = 630AE638104D74C20091039C /* PBXBookmark */;
630AE63B104D74E40091039C /* PBXTextBookmark */ = 630AE63B104D74E40091039C /* PBXTextBookmark */;
630AE63C104D74E40091039C /* PBXTextBookmark */ = 630AE63C104D74E40091039C /* PBXTextBookmark */;
630AE63D104D74E40091039C /* PBXTextBookmark */ = 630AE63D104D74E40091039C /* PBXTextBookmark */;
630AE63E104D74E40091039C /* PBXTextBookmark */ = 630AE63E104D74E40091039C /* PBXTextBookmark */;
630AE63F104D74E40091039C /* PBXTextBookmark */ = 630AE63F104D74E40091039C /* PBXTextBookmark */;
630AE642104D74E40091039C /* PBXTextBookmark */ = 630AE642104D74E40091039C /* PBXTextBookmark */;
630AE648104D753E0091039C /* PBXTextBookmark */ = 630AE648104D753E0091039C /* PBXTextBookmark */;
630AE649104D753E0091039C /* PBXTextBookmark */ = 630AE649104D753E0091039C /* PBXTextBookmark */;
630AE64A104D753E0091039C /* PBXTextBookmark */ = 630AE64A104D753E0091039C /* PBXTextBookmark */;
630AE64B104D753E0091039C /* PBXTextBookmark */ = 630AE64B104D753E0091039C /* PBXTextBookmark */;
630AE64C104D753E0091039C /* PBXTextBookmark */ = 630AE64C104D753E0091039C /* PBXTextBookmark */;
630AE653104D763D0091039C /* PBXTextBookmark */ = 630AE653104D763D0091039C /* PBXTextBookmark */;
630AE657104D76700091039C /* PBXTextBookmark */ = 630AE657104D76700091039C /* PBXTextBookmark */;
630AE65B104D76A10091039C /* PBXTextBookmark */ = 630AE65B104D76A10091039C /* PBXTextBookmark */;
630AE65F104D76D60091039C /* PBXTextBookmark */ = 630AE65F104D76D60091039C /* PBXTextBookmark */;
637BA3E1104D153700331E35 = 637BA3E1104D153700331E35 /* PBXTextBookmark */; 637BA3E1104D153700331E35 = 637BA3E1104D153700331E35 /* PBXTextBookmark */;
637BA3E2104D153700331E35 = 637BA3E2104D153700331E35 /* PBXTextBookmark */; 637BA3E2104D153700331E35 = 637BA3E2104D153700331E35 /* PBXTextBookmark */;
}; };
@ -171,9 +187,9 @@
}; };
630AE5C9104D62CE0091039C /* CommandWrapper.m */ = { 630AE5C9104D62CE0091039C /* CommandWrapper.m */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {933, 767}}"; sepNavIntBoundsRect = "{{0, 0}, {677, 754}}";
sepNavSelRange = "{1002, 0}"; sepNavSelRange = "{580, 26}";
sepNavVisRange = "{3, 1151}"; sepNavVisRange = "{3, 1112}";
sepNavWindowFrame = "{{15, 60}, {992, 818}}"; sepNavWindowFrame = "{{15, 60}, {992, 818}}";
}; };
}; };
@ -261,7 +277,7 @@
fRef = 631A51A9104CF5B700E73564 /* AppController.m */; fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 41"; name = "AppController.m: 41";
rLen = 0; rLen = 0;
rLoc = 830; rLoc = 1031;
rType = 0; rType = 0;
vrLen = 778; vrLen = 778;
vrLoc = 0; vrLoc = 0;
@ -301,7 +317,7 @@
fRef = 631A51A9104CF5B700E73564 /* AppController.m */; fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 26"; name = "AppController.m: 26";
rLen = 0; rLen = 0;
rLoc = 501; rLoc = 506;
rType = 0; rType = 0;
vrLen = 788; vrLen = 788;
vrLoc = 0; vrLoc = 0;
@ -311,7 +327,7 @@
fRef = 631A51A9104CF5B700E73564 /* AppController.m */; fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 45"; name = "AppController.m: 45";
rLen = 0; rLen = 0;
rLoc = 831; rLoc = 1032;
rType = 0; rType = 0;
vrLen = 859; vrLen = 859;
vrLoc = 0; vrLoc = 0;
@ -321,7 +337,7 @@
fRef = 631A51A9104CF5B700E73564 /* AppController.m */; fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 45"; name = "AppController.m: 45";
rLen = 0; rLen = 0;
rLoc = 831; rLoc = 1032;
rType = 0; rType = 0;
vrLen = 859; vrLen = 859;
vrLoc = 0; vrLoc = 0;
@ -461,7 +477,7 @@
fRef = 631A51A9104CF5B700E73564 /* AppController.m */; fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 28"; name = "AppController.m: 28";
rLen = 0; rLen = 0;
rLoc = 549; rLoc = 554;
rType = 0; rType = 0;
vrLen = 859; vrLen = 859;
vrLoc = 0; vrLoc = 0;
@ -511,7 +527,7 @@
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */; fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 43"; name = "CommandWrapper.m: 43";
rLen = 0; rLen = 0;
rLoc = 1029; rLoc = 986;
rType = 0; rType = 0;
vrLen = 1089; vrLen = 1089;
vrLoc = 24; vrLoc = 24;
@ -551,7 +567,7 @@
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */; fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 43"; name = "CommandWrapper.m: 43";
rLen = 0; rLen = 0;
rLoc = 1029; rLoc = 986;
rType = 0; rType = 0;
vrLen = 1089; vrLen = 1089;
vrLoc = 24; vrLoc = 24;
@ -561,7 +577,7 @@
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */; fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 54"; name = "CommandWrapper.m: 54";
rLen = 0; rLen = 0;
rLoc = 1154; rLoc = 1116;
rType = 0; rType = 0;
vrLen = 966; vrLen = 966;
vrLoc = 145; vrLoc = 145;
@ -591,7 +607,7 @@
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */; fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 44"; name = "CommandWrapper.m: 44";
rLen = 0; rLen = 0;
rLoc = 1002; rLoc = 963;
rType = 0; rType = 0;
vrLen = 1068; vrLen = 1068;
vrLoc = 86; vrLoc = 86;
@ -605,7 +621,7 @@
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */; fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 44"; name = "CommandWrapper.m: 44";
rLen = 0; rLen = 0;
rLoc = 1002; rLoc = 963;
rType = 0; rType = 0;
vrLen = 1147; vrLen = 1147;
vrLoc = 3; vrLoc = 3;
@ -635,24 +651,178 @@
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */; fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 44"; name = "CommandWrapper.m: 44";
rLen = 0; rLen = 0;
rLoc = 1002; rLoc = 963;
rType = 0; rType = 0;
vrLen = 1151; vrLen = 1151;
vrLoc = 3; vrLoc = 3;
}; };
630AE638104D74C20091039C /* PBXBookmark */ = {
isa = PBXBookmark;
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
};
630AE63B104D74E40091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 630AE5C8104D62CE0091039C /* CommandWrapper.h */;
name = "CommandWrapper.h: 15";
rLen = 9;
rLoc = 246;
rType = 0;
vrLen = 308;
vrLoc = 0;
};
630AE63C104D74E40091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 631A51A6104CF59900E73564 /* AppController.h */;
name = "AppController.h: 4";
rLen = 9;
rLoc = 90;
rType = 0;
vrLen = 176;
vrLoc = 0;
};
630AE63D104D74E40091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 30";
rLen = 0;
rLoc = 637;
rType = 0;
vrLen = 919;
vrLoc = 0;
};
630AE63E104D74E40091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 40";
rLen = 113;
rLoc = 817;
rType = 0;
vrLen = 1130;
vrLoc = 24;
};
630AE63F104D74E40091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 40";
rLen = 113;
rLoc = 817;
rType = 0;
vrLen = 1133;
vrLoc = 24;
};
630AE642104D74E40091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 46";
rLen = 0;
rLoc = 1040;
rType = 0;
vrLen = 1134;
vrLoc = 24;
};
630AE648104D753E0091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 631A51A6104CF59900E73564 /* AppController.h */;
name = "AppController.h: 4";
rLen = 9;
rLoc = 90;
rType = 0;
vrLen = 176;
vrLoc = 0;
};
630AE649104D753E0091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 256AC3D90F4B6AC300CF3369 /* Quickdev16AppDelegate.m */;
name = "Quickdev16AppDelegate.m: 17";
rLen = 0;
rLoc = 377;
rType = 0;
vrLen = 384;
vrLoc = 0;
};
630AE64A104D753E0091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 630AE5C9104D62CE0091039C /* CommandWrapper.m */;
name = "CommandWrapper.m: 31";
rLen = 26;
rLoc = 580;
rType = 0;
vrLen = 1112;
vrLoc = 3;
};
630AE64B104D753E0091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 30";
rLen = 0;
rLoc = 637;
rType = 0;
vrLen = 951;
vrLoc = 0;
};
630AE64C104D753E0091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 32";
rLen = 0;
rLoc = 637;
rType = 0;
vrLen = 972;
vrLoc = 0;
};
630AE653104D763D0091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 34";
rLen = 0;
rLoc = 675;
rType = 0;
vrLen = 970;
vrLoc = 0;
};
630AE657104D76700091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 33";
rLen = 0;
rLoc = 635;
rType = 0;
vrLen = 958;
vrLoc = 0;
};
630AE65B104D76A10091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 33";
rLen = 0;
rLoc = 633;
rType = 0;
vrLen = 979;
vrLoc = 0;
};
630AE65F104D76D60091039C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 631A51A9104CF5B700E73564 /* AppController.m */;
name = "AppController.m: 36";
rLen = 0;
rLoc = 742;
rType = 0;
vrLen = 990;
vrLoc = 0;
};
631A51A6104CF59900E73564 /* AppController.h */ = { 631A51A6104CF59900E73564 /* AppController.h */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {593, 662}}"; sepNavIntBoundsRect = "{{0, 0}, {593, 662}}";
sepNavSelRange = "{176, 0}"; sepNavSelRange = "{90, 9}";
sepNavVisRange = "{0, 176}"; sepNavVisRange = "{0, 176}";
sepNavWindowFrame = "{{15, 60}, {992, 818}}"; sepNavWindowFrame = "{{15, 60}, {992, 818}}";
}; };
}; };
631A51A9104CF5B700E73564 /* AppController.m */ = { 631A51A9104CF5B700E73564 /* AppController.m */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {593, 662}}"; sepNavIntBoundsRect = "{{0, 0}, {593, 754}}";
sepNavSelRange = "{342, 46}"; sepNavSelRange = "{742, 0}";
sepNavVisRange = "{0, 859}"; sepNavVisRange = "{0, 990}";
sepNavWindowFrame = "{{15, 60}, {992, 818}}"; sepNavWindowFrame = "{{15, 60}, {992, 818}}";
}; };
}; };