Instance Property

hostName

The name of the host computer on which the process is executing.

Declaration

var hostName: String { get }

See Also

Getting Host Information

func operatingSystem() -> Int

Returns a constant to indicate the operating system on which the process is executing.

Deprecated
func operatingSystemName() -> String

Returns a string containing the name of the operating system on which the process is executing.

Deprecated
var operatingSystemVersionString: String

A string containing the version of the operating system on which the process is executing.

var operatingSystemVersion: OperatingSystemVersion

The version of the operating system on which the process is executing.

func isOperatingSystemAtLeast(OperatingSystemVersion) -> Bool

Returns a Boolean value indicating whether the version of the operating system on which the process is executing is the same or later than the given version.