Reputation: 473
There's an app called Intermission that creates a whole screen overlay:
I tried creating a floating panel which utilizes NSPanel
(adapted from https://cindori.com/developer/floating-panel), but it is unable to expand beyond the toolbar/app bar.
I know I can create a new window in full screen mode and achieve a similar result, however I want to draw this overlay directly on top of the screen without entering full screen mode. How can I achieve this result in the way the Intermission app does it?
Upvotes: 2
Views: 2123
Reputation: 473
I figured it out! The trick is to set NSWindow.Level to .popUpMenu
. This allows it to appear above the menubar and dock.
Upvotes: 2