MacOS: toFront() after AuthorizationCreate()

Has anyone figured out how to get your app to come to the front after using the AuthorizationCreate() Security dialog which asks for the user to enter their system password?

Component::toFront() isn’t working.

I’ve tried a Timer to bring the MainWindow to the front… but that doesn’t work.



Okay, I came up with a kludge… I make the MainWindow alwaysOnTop (true) then in my Component’s ctor where I call AuthorizationCreate, I start a Timer which when triggered makes MainWindow alwaysOnTop (false) and stops the Timer (so it’s a single shot).


AlwaysOnTop seems to often end up with these kuldges for things…