I have an application that sits in the background and sometimes an image appears on the screen (NSView, whose NSWindow is transparent and has a 0 alpha background). I set it as a UIElement so that it does not appear in the dock or application switcher. But I want it to appear when the user opens the "Settings" menu item of my status bar icon, which will allow them to configure it.
I know this is possible because iStat Menus does it. But I canβt figure out how to do this. How should I do it? Or do I just need it to always be present on the dock / app switch?
edit: Obviously, iStat uses one process for the system tray and one process for preference windows. It's fun. I think I can finish by simply making it a UIElement and receiving a hidden preference window that orderFront will send when the preference menu option is selected.
Venge source
share