Re: Age Old Question: How Do You Set __MyCompanyName__
Re: Age Old Question: How Do You Set __MyCompanyName__
- Subject: Re: Age Old Question: How Do You Set __MyCompanyName__
- From: Jack Repenning <email@hidden>
- Date: Fri, 19 Dec 2008 09:40:37 -0800
On Dec 18, 2008, at 5:44 PM, George Warner wrote:
That seems contradictory; how about "if
PBXCustomTemplateMacroDefinitions is
defined you get that otherwise Xcode looks in your address book."?
Just a thought, how about adding a "New Run Script Build Phase" to
your
project; all the script does is:
[BEGIN]
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ \
FULLUSERNAME = "George Warner"; \
ORGANIZATIONNAME = "Apple Computer, Inc."; \
}'
[END]
I just tried it and you don't have to re-launch Xcode for it to pick
up this
value changing. As long as you've built your project then the next
files you
add will have the correct macro expansion.
(I recognize this as a bit of a band-aid but it appears to work on
Xcode
2.5, 3.0 and 3.1.2 so unless you expect us to back port our solution
to this
issue... (not!) ;-)
Sorry, I'm lost. Why are you using a custom script for this? I think
your goal is to have project-specific settings, yes? If so, what's
wrong with setting them in the project defailts (InfoPlist.strings)?
Having a build target that changes the central Xcode prefs for each
project seems like in invitation to disaster: switch between projects,
forget to build something, create a new file, bingo: wrong attribution.
Ref again an earlier summary in this list on the precedence among the
bewildering array of possibilities:
http://www.cocoabuilder.com/archive/message/xcode/2008/11/18/25871
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden