Monday, July 18, 2011

Making Your Mac App Support Full Screen in 1 Minute

Full screen mode is a cool feature on Mac OS X Lion. I'd like to let my app support full screen. I googled, but did not find any tutorial. I thought there would be an option like'Support full screen' when a new project is created with the new Xcode 4.1 on Lion. Surprisingly, there is no that option. Today I watched a video of WWDC2011 and made this article. I am sure you can follow the steps to make your app support full screen in 1 minute.

I created a new Mac OS X Cocoa Application with Xcode 4.1 on Lion and named it MyFullScreen.

1. Set Base SDK Mac OS X 10.7

2. Choose MainMenu.xib in Project navigator

3. Choose 'Window - MyFullScreen' in Objects

4. Choose 'Primary Window' for Full Screen in Attributes inspector. You will see a new icon on the top-right corner of your main window. Run this app. It already supports full screen!

Make Full Screen

5. You need to add a menu item. Choose 'Menu - View', and then drag 'Full Screen Menu Item' in Object Library into 'Menu - View'.

Full Screen Menu Item

We are done! It is very easy.

7 comments:

Jesse said...

Thank You.. This solved the issue in 2 sec which Master Google could not solve in 10m

Anonymous said...

Hi. This post is likeable and your blog is very interesting, congratulations!! Mac Support Melbourne

Abhishek said...
This comment has been removed by the author.
John Mike said...

Thanks for the nice and interesting post!!Mac support

Astrology said...

I have read a few excellent stuff here. Certainly price bookmarking for revisiting. I wonder how much effort you place to create such a fantastic informative website.

Unknown said...
This comment has been removed by the author.
Unknown said...

Thanks a lot! Very useful for a new Mac developer