I implement NSPopover and appear in the status bar, setting it as a custom view. I set its behavior to Transient and also added a global event monitor so that when some other application gets focus, NSPopover disappears.
This works pretty well, but the only problem that I encountered is that clicking on popover allows you to focus the main application window. If I put the window in one place and look at the popover in another space and interact with the popover, I get back into the space with the main window and focuses. Is there any way to prevent this? Perhaps allowing interaction with popover without activating the application?
objective-c cocoa macos nspopover nsstatusitem
kbhomes
source share