如何在全屏视图前显示NSPanel? [英] How to display NSPanel in front of Fullscreen-View?

查看:157
本文介绍了如何在全屏视图前显示NSPanel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序以全屏模式运行,并且我需要类似iOS的UIPopoverController.第一个想法是使用NSPanel,但我无法将其显示在全屏视图的前面.

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.

我需要可可的类UIPopoverController类或在全屏视图前显示NSPanel的方法.我该怎么做?

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?

推荐答案

对不起,它们都不起作用.

Sorry, none of them really worked.

解决方案是:

[yourPanel setLevel:kCGMaximumWindowLevel];

但是,Wevah和SphereCat1帮助我找到了setLevel:方法.谢谢.

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

这篇关于如何在全屏视图前显示NSPanel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆