Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSAlert above NSPopover

I have an NSPopover which displays from an NSStatusItem. This Popover shows NSAlerts from time to time. The problem is these alerts always appear below the popover, even though they become the key window. Even if I drag it it's still below the popover. Is there a way of making the alerts above the popover?

like image 893
Mark Bridges Avatar asked Nov 22 '22 04:11

Mark Bridges


1 Answers

This will work: DispatchQueue.main.async { alert.window.level = .popUpMenu } // moves the alert above statusbar app

like image 130
Sentry.co Avatar answered Nov 24 '22 17:11

Sentry.co