How to make FullScreen your applications using Lion New API

Lion supports a full-screen application in a separate space. And it's cool to glide space to taste.

But I do not know how to do this for my own application.

+2
source share
2 answers

There are two ways to make your window have a full-screen button in the corner.

[[NSApplication sharedApplication] setPresentationOptions:NSFullScreenWindowMask];

and

[window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenPrimary];

I wrote a little more about this in a blog post here

+6
source

See this document . Basically, you can call a message toggleFullScreen:in a window to place it in full screen mode.

+2
source

Source: https://habr.com/ru/post/1539701/


All Articles