Disable NSPopover status bar display from main window

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?

+7
objective-c cocoa macos nspopover nsstatusitem
source share

No one has answered this question yet.

See related questions:

17
NSPopover failure when popover is in status bar
3
NSStatusItem Application Focus
2
In Objective-C / Cocoa, are there global events when mission management is activated or spaces are changed?
2
NSPopover crashes when closing a window
one
Reopen the application window from the menu in the status bar
one
OSX Status Bar Menu Occasionally Does Not Cancel Other Status Menus
one
Download WebView URL inside NSPopover notification bar
one
How to make a separate NSPopover window become a modal window
0
OSX: launch a window from the status menu
0
The status bar window is displayed only on the main desktop

All Articles