Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Change the __MyGreatSoftware__ default in ProjectBuilder Apps
If you're a developer using ProjectBuilder, chances are you're tired of seeing __MyGreatSoftware__ whenever PB generates a class for you, a new project, etc., and you'd like a way to fix it. Well, there is a way - wholly undocumented, at least that I could find - to change that value, as well as any others, to whatever value you want.

First, check the files in /Developer -> ProjectBuilder Extras -> File Templates/ and /Developer -> ProjectBuilder Extras -> Project Templates/. This is where you'll get the name of the variable you'll want to replace. Checking, you'll see that __MyGreatSoftware__ is what typically goes into the spot marked by ORGANIZATIONNAME, and there are others - such as FULLNAME (or something similar) - that you might want to change. Write them down for reference, caps and all, and head over to ~/Library/Preferences.

Once there, open com.apple.projectbuilder.plist by double-clicking it. This should open it in Property List Editor. Click once to select any item, then click "New Sibling." Name the new sibling PBXCustomTemplateMacroDefinitions, and change its type to Dictionary. It should now have a little "disclosure triangle" - turn the triangle down, and click the button that previously said "New Sibling," but now says "New Child." For the name of this new item, type ORGANIZATIONNAME (all caps, I assume - I haven't tried it without). Leave the type of this as String, and change its value on the right to whatever you want to appear instead of __MyGreatSoftware__.

And that's it! One possible use of this that I can think of: copy/paste the code in the templates that inserts the organization name, change ORGANIZATIONNAME to LICENSE, and replace the license with your license of choice - BSD, GPL, Artistic, etc.

[robg adds: As a non-programmer, I wasn't able to verify this one, but I hope it's as useful as it sounds!]

    •    
  • Currently 2.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[4,081 views]  

Change the __MyGreatSoftware__ default in ProjectBuilder | 4 comments | Create New Account
Click here to return to the 'Change the __MyGreatSoftware__ default in ProjectBuilder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change the __MyGreatSoftware__ default in ProjectBuilder
Authored by: mrbump on Feb 21, '03 11:11:58AM

Didn't work for me :(

Anybody else know how to really do it?

Thanks



[ Reply to This | # ]
Re: Change the __MyGreatSoftware__ default in ProjectBuilder
Authored by: blb on Feb 21, '03 02:41:43PM

This is actually documented, but definitely not easy to find. Open PB, and select Help->Show Release Notes (or if you have the latest devtools, Dec 2002, Help->Show Older Release Notes). Then do a search for PBXCustomTemplateMacroDefinitions to see the info. Nicely buried, isn't it?



[ Reply to This | # ]
Change the __MyGreatSoftware__ default in ProjectBuilder
Authored by: steveloranz on Feb 21, '03 07:55:02PM
The following defaults write command will achieve the same thing and not get blown away whenever the templates are upgraded.

defaults write com.apple.projectbuilder 'PBXCustomTemplateMacroDefinitions' "{ORGANIZATIONNAME = yourCompanyName ; }"

[ Reply to This | # ]
Change the __MyGreatSoftware__ default in ProjectBuilder
Authored by: rvamerongen on Feb 27, '03 02:51:24PM

Yes, the Deafaults code works, but it overwrites the already exsisting items under 'PBXCustomTemplateMacroDefinitions'.

If you just use the 'property list editor.app' and you add your own macronames under 'PBXCustomTemplateMacroDefinitions' then it works great.
Be sure that you did save it before you can use it in PBX

René



[ Reply to This | # ]