Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Friday, September 03 2010 @ 09:39 AM CEST

How to change "__MyCompanyName__" ?

   
ProjectBuilder-XCodeWhere does ProjectBuilder (Xcode) stores the string to use as "__MyCompanyName__" ?

Open the ProjectBuilder preferences file (~/Library/Preferences/com.apple.ProjectBuilder.plist) or the Xcode one (~/Library/Preferences/com.apple.Xcode.plist) and edit the dictionary associated with the key PBXCustomTemplateMacroDefinitions (create one if it does not exist, as child of the root node), edit or add the key ORGANIZATIONNAME, the associated string value will be used when PB creates new source files.

You could also do it via Terminal.app:

defaults write com.apple.ProjectBuilder PBXCustomTemplateMacroDefinitions '{ "ORGANIZATIONNAME" = "My Company";}'
or

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

What's Related

Story Options

How to change "__MyCompanyName__" ? | 3 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
How to change "__MyCompanyName__" ?
Authored by: Anonymous on Sunday, October 26 2003 @ 11:00 PM CET
I am sorry but I don't understand this. or it does not work.

What do you mean by "the dictionary associated with the
PBXCustomTemplateMacroDefinitions"? Is that the dictionary
that contains that very key? I cannot find that key, so how am I
supposed to know which dict it should be in?

"create one if it does not exist"... you mean create a dict or a
key? and by what name?

and lastly: are you sure it's "ORGANIZATIONNAME" and not
"ORGANISATIONNAME"?
 Copyright © 2010 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.14 seconds