I am building a macOS menubar app in Swift, using an NSStatusItem
, which opens an NSPopover
when the NSStatusItem
's button is clicked.
How can I also give the NSPopover
focus? Currently, the user needs to click on the popover to focus it, but I want to grab focus programmatically.
Thanks in Advance