Dialog Toolkit: PathControl popup style – add a "new folder" button ?

I have a dialog (created using Shane Stanley’s Dialog Toolkit Plus) which has a Path Control element. The Path Control is set to popup style so that clicking on the control then on “Choose…” shows an Open Panel.

I’d like to add a “New folder” button (at present the user has to remember that command-shift-n will create a new folder).

If the Open Panel could be customised, it would be possible to use “setCanCreateDirectories”. Is there a way to customise the Open Panel that’s displayed by NSPathControl ?

Thanks.

You would have to make a delegate of the path control, and then add a -pathControl:willDisplayOpenPanel: handler. This will then be called just before the open panel appears, giving you a chance to modify it.