I have a background "monitoring" app that runs either as an accessory or as a regular app (user choice depending on whether they want to see it in the dock).
The app has several never-key utility windows (NSPanel
s) that display the progress of background tasks. When a background task starts, the window is made visible using orderFront:
.
This has worked great for years; the window would simply appear somewhere behind the active app.
Starting in Catalina (macOS 10.15), however, orderFront:
causes my monitoring app to become active, stealing the focus from the user's app.
This is bad and I'd like to prevent it, but I can't seem to figure out how.