Delphi firemonkey Mac OSX modal form moves behind main form when closing file dialog
Delphi 10.2 Tokyo, firemonkey framework.
I'm having a weird problem with Mac OSX and file dialogs.
I have a form, say "Form1". This form opens another form "Form2" modally using the buttonclick button. "Form2" has a button that opens a dialog with a file (eg selectdirectory, or NSOpenPanel, etc.), and when I close the dialog of that file, "Form2" moves the i-th z-order behind the main form, remains active and cannot be returned to the front. This only happens on Mac, not Windows as the target platform.
At first I thought I might have something somewhere in my code by calling this, so I created a new test project with the two forms I mentioned and it does the same.
What am I doing wrong? Is there something I need to take care of Mac OSX regarding file dialogs?
Here you can see the settings dialog in the background above the main form. There is a button in the preferences dialog that calls SelectDirectory (...) while everything is fine.
When I close the file dialog, the settings form moves behind the main form, remains active, and I cannot bring the form back.
source to share
No one has answered this question yet
Check out similar questions: