processIdentifier
Indicates the process identifier (pid) of the application.
Declaration
var processIdentifier: pid_t { get }Discussion
Not all applications have a pid. Applications without a pid return a value of -1.
Do not rely on this for comparing processes, instead compare NSRunningApplication instances using isEqual(_:).