Geek@Paris

Add Lion Fullscreen feature in a Xcode 3 project

2011-11-04
  1. Open your *.xib files by Interface Builder 3.2.6 (which is included in Xcode 3.2.6), press OPT+CMD+I to open the Info panel, change “Development Target” to “Interface Builder 3.2”.
  2. Open your *.xib file in any text editor (Such as Kod, Sublime Text 2, TextMate, etc.).
  3. Search and find
    <object class="NSWindowTemplate" id="xxxxxxxxx">
  4. Copy and paste the following code between the found object tag
    <int key="NSWindowCollectionBehavior">128</int>
  5. Save and build your project, you will see the full-screen button on the top-right corner of your window if your system is Lion.
Author:admin | Categories:Dev | Tags:

3 Comments

  1. Sam says:

    two of these: object class=”NSWindowTemplate” id=”xxxxxxxxx

  2. Sam says:

    My project has 2 I have tried putting it under both an still no luck getting it working?

    Any ideas?

    • admin says:

      Sorry for the delay. You can distinguish your NSWindow by checking the size I think. And I really don’t know why it doesn’t work on your machine. I also installed Xcode 4.2 in my Lion, but I build my project with Xcode 3.2.6, and it works!

Leave a Reply

Your email address will not be published. Required fields are marked *


Clickcha - The One-Click Captcha