I have an app that acts as an agent (no dock/app, just menu bar icon). When the icon is clicked, I show a popover with a small user interface.
This works great, however, there is an issue. When a certain app is in full-screen and then my menu bar icon is clicked, the user interface shows just fine, until the mouse is moved outside the menu bar - then the user interface stays but the menu bar dismisses and closes.
Is there a way to keep the menu bar open, like when clicking on Control Center, in full-screen apps?
This is how I open my popover:
if let button = statusItem.button {
if popover.isShown {
self.popover.performClose(sender)
} else {
popover.show(relativeTo: button.bounds, of: button, preferredEdge: .minY)
popover.contentViewController?.view.window?.makeKey()
}
}
}
Post
Replies
Boosts
Views
Activity
My macOS app includes a system extension that is activated once the app is ran. The system extension requires Full Disk Access.
When navigating to System Settings → Privacy & Security -> Full Disk Access, I can see my extension listed, but it has the default system "lego" icon, instead of my app's icon.
My app icon is working fine everywhere else. I tried to add an Asset Catalog to my extension on Xcode and include the icon, but it didn't do anything.
Is this the default behavior for extensions, or can you include an icon?