__MyCompanyName__

I finally got sick of changing MyCompanyName in my new source files. To change MyCompanyName to something useful, you need to edit the ORGANIZATIONNAME in the com.apple.Xcode prefs. I used the ‘defaults write’ method described here, which looks like this:

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions \
'{ "ORGANIZATIONNAME" = "YourCompanyName";}'
Surprisingly, I had to quit and reopen Xcode before the change took effect.

To change more of the template, find and edit the template file in “/Library/Application Support/Apple/Developer Tools/File Templates”

I’m a

foo
{
}
kind of guy, vs. the default templates
foo {
}

Leave a Reply


© 2006-2009 roobasoft, LLC