mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
Also fixed a bug with the host app extension method, the recursive find-the-app-in-the-archive method, and made the extension comparison case insensitive for extraction purposes.
27 lines
537 B
Objective-C
27 lines
537 B
Objective-C
//
|
|
// NTSynchronousTask.h
|
|
// CocoatechCore
|
|
//
|
|
// Created by Steve Gehrman on 9/29/05.
|
|
// Copyright 2005 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@interface NTSynchronousTask : NSObject
|
|
{
|
|
NSTask *mv_task;
|
|
NSPipe *mv_outputPipe;
|
|
NSPipe *mv_inputPipe;
|
|
|
|
NSData* mv_output;
|
|
BOOL mv_done;
|
|
int mv_result;
|
|
}
|
|
|
|
// pass nil for directory if not needed
|
|
// returns the result
|
|
+ (NSData*)task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input;
|
|
|
|
@end
|