tags:

views:

385

answers:

4

When Xcode creates a new file, there's always something like this in the header:

//  Copyright 2009 __MyCompanyName__. All rights reserved.

How can I change that?

+5  A: 

Xcode will try to pull this information from your entry in the system address book - if you can't modify it there, try using this command to override:

defaults write com.apple.xcode PBXCustomTemplateMacroDefinitions '{ ORGANIZATIONNAME = "ORGNAME";}'

pix0r
that didn't work. I entered it in terminal...
Thanks
Restart Xcode, then create a new file.
pix0r
+2  A: 

As a follow-up to the answer above, for documentation of that and many other preferences see the Xcode defaults reference

smorgan
A: 

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions ' { "ORGANIZATIONNAME" = "javacom"; } '

Entered in Terminal.

Jason
A: 

As of xcode 3, it will use the "company" field from your Address Book card if the "PBXCustomTemplateMacroDefinitions" key is missing from com.apple.Xcode.plist.

Mark Thalman