Fixed a segfault crash that would occur if you stepped at the end of a script
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / NTSynchronousTask.h
1 //
2 // NTSynchronousTask.h
3 // CocoatechCore
4 //
5 // Created by Steve Gehrman on 9/29/05.
6 // Copyright 2005 Steve Gehrman. All rights reserved.
7 //
8
9 #ifndef NTSYNCHRONOUSTASK_H
10 #define NTSYNCHRONOUSTASK_H
11
12 @interface NTSynchronousTask : NSObject
13 {
14 NSTask *mv_task;
15 NSPipe *mv_outputPipe;
16 NSPipe *mv_inputPipe;
17
18 NSData* mv_output;
19 BOOL mv_done;
20 int mv_result;
21 }
22
23 // pass nil for directory if not needed
24 // returns the result
25 + (NSData*)task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input;
26
27 @end
28
29 #endif