1

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.

hippietrail
  • 15,848
  • 18
  • 99
  • 158
Hans
  • 2,354
  • 3
  • 25
  • 35

0 Answers0