How to display NSPanel in front of Fullscreen-View?

cocoa, fullscreen, macos, objective-c

Solution

Sorry, none of them really worked.

The solution was:

[yourPanel setLevel:kCGMaximumWindowLevel];

However, Wevah and SphereCat1 helped me find the `setLevel:` method. Thanks.

Problem

My application rund modally in fullscreen, and I need something like iOS' UIPopoverController. The first idea was using an NSPanel, but I can't get it to show in front of the fullscreen view. I need either a UIPopoverController-like class for Cocoa or a way to display a NSPanel in front of a fullscreen view. How can I accomplish this?

Original source