如何使用Lion New API全屏显示您的应用 [英] How to FullScreen Your Apps With Lion New API
本文介绍了如何使用Lion New API全屏显示您的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
狮子在单独的空间中支持全屏应用程序.而且用扣子滑动空间很酷.
Lion support full screen app in the separate space. And It's cool to slide the space by gusture.
但是我不知道如何为自己的应用制作它.
But I don't know how to make it for my own app.
推荐答案
有两种方法可以使窗口在全角具有全屏按钮.
There are two ways to get your window to have the fullscreen button in the corner.
[[NSApplication sharedApplication] setPresentationOptions:NSFullScreenWindowMask];
和
[window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenPrimary];
我在博客文章 查看全文