タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

objective-cとshellに関するYudoufuのブックマーク (1)

  • waitUntilExit - macOS/iOS API解説

    UNIXコマンド実行の終了を待ちます 解説 UNIXコマンド実行の終了を待ちます。 返り値 ( void ) なし 引数 フレームワーク Foundation クラス NSTask Instance Methods 使用可能 10.0 参照 - launch - terminate 例文 #import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSTask *task = [[NSTask alloc] init];//Task=UNIXコマンド実行 NSPipe *pError = [NSPipe pipe];//エラー出力先 NSPipe *pOutput = [NSPipe pipe];//標準出力先 [task setLaunchPath:@"/usr/bin/cal"];//起

    waitUntilExit - macOS/iOS API解説
  • 1