Sets the standard error for the receiver.
- macOS 10.0+
file is an
NSPipe object, launching the receiver automatically closes the write end of the pipe in the current task. Don’t create a handle for the pipe and pass that as the argument, or the write end of the pipe won’t be closed automatically.
If this method isn’t used, the standard error is inherited from the process that created the receiver. This method raises an
NSInvalid if the receiver has already been launched.