Contents

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

You can call this method safely from any thread in macOS 10.6 and later.

See Also

Opening URLs