toFront() not working on Mac?

Mac os 10.15

Trying to call toFront() on a window using the timerCallBack method. Works fine on Windows but Mac isn’t cooperating. Any ideas?

for (auto window : SettingsWindow::settingWindows)

What is not working? just in case you have a different expecation, the toFront() function works on the order of your apps windows, not the os level, ie. it won’t bring your windows in front of an app that is covering them…

ahhh. That could be it. On windows it does bring said window in front of other app windows though.

For that behaviour try juce::Process::makeForegroundProcess().


Daniel, you are the man! I was about to try and start creating a cocoa function.

1 Like