Initializer

init()

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

Declaration

init()

Return Value

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

Discussion

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

See Also

Creating and Initializing an NSTask Object

class func launchedProcess(launchPath: String, arguments: [String]) -> Process

Creates and launches a task with a specified executable and arguments.

Deprecated