Question

I am creating a fullscreen app and am wondering if there is some way to make NSAlert go above the CGDisplayCapture that I created. Right now, the NSAlert is displaying behind the display capture. My main window is displaying just fine (after adjusting it with setLevel:) but NSAlert doesn't seem to be working as well. I attempted to do:

[[alertBox window] setLevel:CGShieldingWindowLevel()];

But that doesn't seem to work either. I imagine that there must be some way to do this, but I am just not sure where to start.

Any help would be appreciated.

Was it helpful?

Solution

If you want to display a multiwindowed UI but prohibit app switching, etc., use SetSystemUIMode instead of CGDisplayCapture.

OTHER TIPS

There is no supported way to display a window when the display is captured. That’s what capturing the display means.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top