Quick rename of menu items in XCode
Tuesday, June 10th, 2008Sometimes 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

You are currently browsing the archives for the Mac category.