Here's how I made my local copy of TextEdit.app 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/TextEdit.app/Contents/Resources/DocumentWindow.nib
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)
-
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. -
The fullscreen settings for TextEdit are in
/Applications/TextEdit.app/Contents/Resources/DocumentWindow.nib
, but we can't edit that directly. First, we'll need to put it in ourCompiled Nib Opener.nib
directory askeyedobjects.nib
. This is easily done in Terminal.app:cp /Applications/TextEdit.app/Contents/Resources/DocumentWindow.nib ~/Downloads/Compiled\ Nib\ Opener.nib/keyedobjects.nib
-
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. -
sudo cp ~/Downloads/Compiled\ Nib\ Opener.nib/keyedobjects.nib /Applications/TextEdit.app/Contents/Resources/DocumentWindow.nib
Thanks to this macworld post on what to change in DocumentWindow.nib and this video on how to edit nib files.
Thanks, works great!