Allow your Mac app to support full screen in one minute

Source: Internet
Author: User

Mac OS X lion introduces a good feature: full screen. I really want to make my app support full screen. I Googled it and found only Apple's development documentation, but it was basically not operable. It seems that I could only find it myself. I fantasized that the new xcode on lion will have an option "whether to support full screen" when creating a new project. Unfortunately, it is not. I suddenly remembered that there could be related videos in wwdc2011. I checked the video. But the speaker is not clear. I have studied it and published the method to ensure that your app can support full screen in one minute.

I created a new Mac OS X cocoa application on lion named myfullscreen.

1. Set the base SDK to Mac OS X 10.7

2. Select mainmenu. XIB in project navigator,

3. Select window-myfullscreen in objects

4. Select primary window for full screen in attributes inspector. In this way, the enlarged arrow icon you expect will appear in the upper right corner of your main window. Run thisProgram, Full screen is supported!

5. You also need to add a full screen menu item to the menu. Select menu-view in objects, and drag full screen menu item into menu-view in Object Library.

Compilation, running, success!

Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.