Instance Method

open(_:)

Opens the location at the specified URL.

Declaration

func open(_ url: URL) -> Bool

Parameters

url

A URL specifying the location to open.

Return Value

true if the location was successfully opened; otherwise, false.

Discussion

It is safe to call this method from any thread in macOS 10.6 and later.