Contents

urlsFromRunningOpenPanel()

An array of URLs that correspond to the selected files in a running Open dialog.

Declaration

func urlsFromRunningOpenPanel() -> [URL]?

Discussion

Accessing this property creates an NSOpenPanel object and runs it using the runModalOpenPanel(_:forTypes:) method. When the user dismisses the panel, the returned value is an array of URLs corresponding to the files chosen by the user. The value is nil if the user cancels the Open panel or makes no selection.

See Also

Managing the Open Dialog