While there are quite a few questions about how to preselect a file on NSOpenPanel, they set openPanel.directoryURL
to the path of the target file. However NSOpenPanel
can allow for multiple files to be selected via the openPanel.allowsMultipleSelection
property. Is there a way to preselect multiple files?
The intuitive way would be to set openPanel.urls
but that is read-only.