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