How can I change the copyright template in Xcode 4?

woot586 picture woot586 · Apr 24, 2011 · Viewed 40k times · Source

Does anyone know how to change copyright in the templates for Xcode? That is, at the top of a new file it writes:

//  Copyright 2011 {Company Name}. All rights reserved.

In previous Xcode versions you could change it by running the following command in the terminal:

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" = “{Company Name}";}’

In Xcode 4.0 this method no longer works.

Answer

一二三 picture 一二三 · Apr 24, 2011

Xcode 4 (and above) stores this on a per-project basis.

If you select the project in the Project Navigator (Cmd-1) and open the File Inspector (Cmd-Opt-1), you'll see a field for "Organization" under "Project Document".