Skip to content

@rampion /DocumentWindow.nib
Last active

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
How to make fullscreen

Here's how I made my local copy of able to work in fullscreen. This won't add a menu option, but does add the little fullscreen double arrow to the upper-right-hand corner of TextEdit windows.

If you trust me, you can just use the modified DocumentWindow.nib that's included with this gist.

sudo cp ~/Downloads/DocumentWindow.nib /Applications/

That's it. Now just open TextEdit, and try out fullscreen mode.

If you don't trust binary code that some stranger gave you on the internet, or just want to know how I did it, try these instructions instead. These instructions require:

  • the ability to type commands into the terminal (step 2, step 4)
  • XCode/InterfaceBuilder (step 3)
  • root privileges (step 4)

  1. First, you'll need to download an editable nib file. This will provide a wrapper that we can manipulate with XCode/InterfaceBuilder. Unzip the downloaded file, and place Compiled Nib Opener.nib somewhere convenient, like your Desktop or Downloads folder. I'll assume it's in ~/Downloads/Compiled Nib Opener.nib for the rest of these instructions.

  2. The fullscreen settings for TextEdit are in /Applications/, but we can't edit that directly. First, we'll need to put it in our Compiled Nib Opener.nib directory as keyedobjects.nib. This is easily done in

    cp /Applications/ ~/Downloads/Compiled\ Nib\ Opener.nib/keyedobjects.nib
  3. Now open up our Compiled Nib Opener.nib file with XCode/InterfaceBuilder. The entire window should be selected. If it isn't, just click the window header (with the red/yellow/green buttons). Open up the Attributes tab (fourth in the right side bar), scroll down to "Full Screen" and select "Primary Window". Save it, and close XCode.

    xcode screenshot

  4. Last, all we need to do is copy our changed keyedobjects.nib back and replace the original DocumentWindow.nib. Again, this is easily done in Since DocumentWindow.nib is owned by root and write-locked, we'll need sudo.

    sudo cp ~/Downloads/Compiled\ Nib\ Opener.nib/keyedobjects.nib /Applications/

Thanks to this macworld post on what to change in DocumentWindow.nib and this video on how to edit nib files.


Just download the TextEdit source and make the changes there, then compile your own copy.


Thanks, works great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.