In the most recent Apple documentation both NSTask
and Process
have several deprecated methods and properties, although there's nothing marked with an API Availability Macro
.
Instance Properties
@property(copy) NSString *launchPath;
@property(copy) NSString *currentDirectoryPath;
var launchPath: String? { get set }
var currentDirectoryPath: String { get set }
Instance Methods
- (void)launch;
func launch()
Type Methods
+ (NSTask *)launchedTaskWithLaunchPath:(NSString *)path
arguments:(NSArray<NSString *> *)arguments;
class func launchedProcess(launchPath path: String,
arguments: [String]) -> Process
There seemingly are no replacements available, so what gives?