Contents

init(processIdentifier:)

Returns the running application with the given process identifier, or nil if no application has that pid.

Declaration

convenience init?(processIdentifier pid: pid_t)

Parameters

  • pid:

    The process identifier.

Return Value

An instance of NSRunningApplication for the specified pid, or nil if the application has no process identifier.

Discussion

Applications that do not have PIDs cannot be returned from this method.

See Also

Getting running application instances