mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Yeah, this isn't backwards compatible with older code that uses Sparkle Few notes: * Mostly everything from *.pch has been moved out for saner dependency tracking * 10.7 compatibility has been removed out so I don't import Cocoa when I don't have to * sharedUpdaters/SUUpdater singletons has been removed out so updaters can actually be deallocated properly (and since singletons are generally horrible idea anyway) * SUUpdater doesn't have UI/cocoa/bindings/menu validation code. Its new initializer method takes a user driver (perhaps in the future I'll create another class that "binds" the UI and core)
29 lines
804 B
Objective-C
29 lines
804 B
Objective-C
//
|
|
// NTSynchronousTask.h
|
|
// CocoatechCore
|
|
//
|
|
// Created by Steve Gehrman on 9/29/05.
|
|
// Copyright 2005 Steve Gehrman. All rights reserved.
|
|
//
|
|
|
|
#ifndef NTSYNCHRONOUSTASK_H
|
|
#define NTSYNCHRONOUSTASK_H
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@interface NTSynchronousTask : NSObject
|
|
@property (readonly, strong) NSData *output;
|
|
@property (readonly) int result;
|
|
|
|
// pass nil for directory if not needed
|
|
// returns the result
|
|
+(int) task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input output: (NSData**)outData;
|
|
|
|
+(NSData*)task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input;
|
|
|
|
- (void)run:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input;
|
|
|
|
@end
|
|
|
|
#endif
|