Initializer

init()

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

Declaration 宣言

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 launchedProcess(launchPath:arguments:) to create and run the process.

See Also 参照

Creating and Initializing a Process Object