Returns the exit status returned by the receiver’s executable.
- macOS 10.0+
The exit status returned by the receiver’s executable.
Each task defines and documents how its return value should be interpreted. For example, many commands return 0 if they complete successfully or an error code if they don’t. You’ll need to look at the documentation for that task to learn what values it returns under what circumstances.
This method raises an
NSInvalid if the receiver is still running. Verify that the receiver is not running before you use it.