Sometimes a little bit of automation goes a long way and other times it may be just wasted time. I have run into one of these situations recently when dealing with Xcode and trying to rename menu items from NewApplication to the Application Name.
For Example:
Quit NewApplication -> Quit TestApp
My first approach was to use Ruby open the MainMenu.xib and do a replacement. This technique may prove to be useful in the future when I have more command line tools for other tasks, but currently there is a much simpler way of dealing with renaming menu items.
1. Right click on MainMenu.nib and select “Open As” -> “Source Code File”
2. Press: “Command-F” to open find/replace dialog
3. Replace all NewApplication strings with desired application name.
That’s it



June 10th, 2008 at 7:59 pm
Reminds me of the part in Dreaming In Code about Yak Shaving. Sometimes a seemingly pointless activity really is pointless. Sometimes it’s not. Hard to tell the difference at times.
Last week I spent half a day setting things up so I could develop the website at work locally. I think it’s paid off already. Other times, I’ve spent a couple of days trying to find a better way to do something and didn’t get anything but experience from my effort.