iPlug2 / iPlug2

C++ Audio Plug-in Framework for desktop, mobile and web
https://iplug2.github.io
Other
1.9k stars 282 forks source link

PromptForFile window kept behind plugin window on mac #913

Closed svantana closed 1 year ago

svantana commented 1 year ago

On mac, the NSPanel created by PromptForFile can be stuck behind the plugin window. Apple's documentation states vaguely that this behaviour can be dependent on the window size and other factors.

Tested on AU and VST plugin GUIs, Ableton Live 10.6, MacOS 12.6, 2019 Intel Macbook.

The problem seems to go away when adding setFloatingPanel: YES. (see accompaning PR).

olilarkin commented 1 year ago

Thanks, I think I introduced this bug in https://github.com/iPlug2/iPlug2/commit/b71e9c29cfade09db3071332c7132d96ea57c104, and that it's not an issue if you supply the IFileDialogCompletionHandlerFunc for async operation. i'll investigate soon

olilarkin commented 1 year ago

danke