Instance Method

openURL:

Opens the location at the specified URL.

Declaration

- (BOOL)openURL:(NSURL *)url;

Parameters

url

A URL specifying the location to open.

Return Value

YES if the location was successfully opened; otherwise, NO.

Discussion

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

See Also

Opening URLs

- openURL:configuration:completionHandler:

Opens a URL asynchronously using the provided options.

- openURLs:withApplicationAtURL:configuration:completionHandler:

Opens one or more URLs asynchronously in the specified app using the provided options.