I try to use MessageBoxOptions::withAssociatedComponent to put the native dialog onto the document closed without any success. The dialog remains at the same position on screen. Is it supposed to work on macOS (BigSur)?
The doc says that it might be used for positioning the windows “depending on the look and feel”.
It’s true that I would expect the default L&F to position it correctly, but maybe it’s worth stepping in the stack to see if it at least tries to?
It has no effect on macOS. Also only the warning icon is supported (there are no other possibilities in macOS). Maybe worth to mention it in the docs? From juce_mac_Windowing.mm: