Unfortunately, there is no such API available in NSSavePanel nor NSOpenPanel, you may want to consider filing an enhancement request at http://bugreport.apple.com
Forcing the NSOpenPanel View Option
-
07-12-2021 - |
Question
Is it possible to force or maybe even restrict the view option of an openPanel? For example I want the openPanel to only display the Cover flow view or Icon view upon activation. If restriction is not possible - how can I set the default view?
Thanks.
-paul.
Solution 2
OTHER TIPS
you can make all non-selectable files be transparent via the delegate - (BOOL)panel:(id)sender shouldEnableURL:(NSURL *)url
there are more delegate methods in the NSOpenSavePanelDelegate
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow