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.nibsomewhere convenient, like your Desktop or Downloads folder. I'll assume it's in
~/Downloads/Compiled Nib Opener.nibfor 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 our
Compiled Nib Opener.nibdirectory as
keyedobjects.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.nibfile 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.
Last, all we need to do is copy our changed
keyedobjects.nibback and replace the original
DocumentWindow.nib. Again, this is easily done in Terminal.app. Since
DocumentWindow.nibis owned by root and write-locked, we'll need
sudo cp ~/Downloads/Compiled\ Nib\ Opener.nib/keyedobjects.nib /Applications/TextEdit.app/Contents/Resources/DocumentWindow.nib