Instance Method インスタンスメソッド

init

Returns an initialized process object with the environment of the current process.

Declaration 宣言

- (instancetype)init;

Return Value 戻り値

An initialized process object with the environment of the current process.

Discussion 議論

If you need to modify the environment of a process, use alloc and init, and then set up the environment before launching the new process. Otherwise, just use the class method launchedTaskWithLaunchPath:arguments: to create and run the process.

See Also 参照

Creating and Initializing an NSTask Object NSTaskオブジェクトの作成と初期化