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 - |
문제
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.
해결책 2
다른 팁
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
제휴하지 않습니다 StackOverflow