Avatar
norio_nomura 9/19/2017 6:02 AM
Processのドキュメントを見たらcurrentDirectoryPathdeprecatedで、ソースを見たら@availableとかなくて、Original sourceを見たらカテゴリで書かれてた… https://developer.apple.com/documentation/foundation/process/1413110-currentdirectorypath objective-c @interface NSTask (NSDeprecated) @property (nullable, copy) NSString *launchPath; @property (copy) NSString *currentDirectoryPath; // if not set, use current - (void)launch; + (NSTask *)launchedTaskWithLaunchPath:(NSString *)path arguments:(NSArray<NSString *> *)arguments; // convenience; create and launch @end (edited)