mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
This is only true because we’re targeting x86_64 on OS X. The same is true for all iOS architectures, but not i386 on OS X. Use CFBridgingRelease in a few places: it acts just like [(id)CFMakeCollectable(obj) autorelease] on non-ARC code, but is a bit cleaner.
27 lines
779 B
Objective-C
27 lines
779 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
|
|
|
|
@interface NTSynchronousTask : NSObject
|
|
@property (readonly, retain) 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
|