This dialog is non-modal, inconsistent with the modal dialog launched with File.browseForOpenMultiple. Our application presents both options, the ability to select files (browseForOpenMultiple) and a folder (browseForDirectory). The non-modality of the directory choice dialog presents a number of problems:
First, while the directory browser dialog is displayed, it's possible to reselect file/folder browse options to launch a second dialog. This results in an exception.
Second, our app can simulate a modal directory browser dialog by disabling the app window (addresses the first problem), but then the directory browser dialog can be lost behind another window, presenting the user with a mysteriously unresponsive application.
Is it possible to make the browseForDirectory dialog modal?