Instance Method



- (void)application:(NSApplication *)application openURLs:(NSArray<NSURL *> *)urls;



Your singleton app object.


An array of URLs to open. The list does not include URLs for which your app has a defined document type.


AppKit calls this method when your app is asked to open one or more URL-based resources. You must declare the URL types that your app supports in your Info.plist file using the CFBundleURLTypes key. The list can also include URLs for documents for which your app does not have an associated NSDocument class. You configure document types using Xcode, or by adding the CFBundleDocumentTypes key to your Info.plist file.

If your delegate implements this method, AppKit does not call the application:openFile: or application:openFiles: methods.

See Also

Opening Files

- application:openFile:

Tells the delegate to open a single file.

- application:openFileWithoutUI:

Tells the delegate to open a file programmatically.

- application:openTempFile:

Tells the delegate to open a temporary file.

- application:openFiles:

Tells the delegate to open multiple files.

- applicationOpenUntitledFile:

Tells the delegate to open an untitled file.

- applicationShouldOpenUntitledFile:

Invoked immediately before opening an untitled file.