new Options button in NSOpenPanel, how to default to "open"

Our product features a file open dialog that at the bottom has our logo and settings for the product. New in 10.11 is an Options button in the lower-left and by default this appears to be "closed". How can we make sure this is set to "open" when we present our file chooser?


Short screen recording:

http://www.screencast.com/t/gj2msU6s7Ul


Thank you.

Hi wplate,


I found 'accessoryViewDisclosed' property in NSOpenPanel.h. It worked for me.

But it requires 10.11 or later.


Thanks.

Bingo. What @mashige said.

OSX catalina:


dialog.isAccessoryViewDisclosed = true

new Options button in NSOpenPanel, how to default to "open"
 
 
Q