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

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

See Also

Opening Files

openFile:

Opens the specified file specified using the default app associated with its type.

openFile:withApplication:

Opens a file using the specified app.

openFile:withApplication:andDeactivate:

Opens the specified file and optionally deactivates the sending app.

openFile:fromImage:at:inView:

Opens a file using the default app for its type and animates the action using a custom icon.

Deprecated