Re: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
Re: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
- Subject: Re: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
- From: Chris Espinosa <email@hidden>
- Date: Tue, 18 Nov 2008 13:05:51 -0800
On Nov 18, 2008, at 12:49 PM, Jack Repenning wrote:
So the precedence order would appear to be:
1. Hand-hacked replacement in the template files in /Developer/
Library/Xcode/File Templates, but that's really tacky, so don't,
therefore:
2. NSHumanReadableCopyright string in the InfoPlist.strings for the
active project if set, otherwise
This is effected by ORGANIZATIONNAME but does not change it for other
contexts. Similar for the expansion in code file header blocks.
3. Value for key ORGANIZATIONNAME in
dictionaryPBXCustomTemplateMacroDefinitions in user defaults for
com.apple.Xcode, if set, otherwise
This is the traditional solution, and is often in place for people
who have been using Xcode for a while
4. Personal card in Apple Address Book, if set and if Xcode is 3.1
or greater, otherwise
5. __MyCompanyName__
Right?
Right.
Hope this doesn't stretch the topic too far, but I have a project
that doesn't have Info.plist / InfoPlist.strings, perhaps because it
was originally created with Xcode version about negative 42. I'd
like to set a project-local value for ORGANIZATIONNAME. Is this as
simple as "Add to project" these two files from some other project,
with copy, and fixing up obvious values? Or might I need to do
something or other else to make it stick?
There's no such thing as a "project-local" ORGANIZATIONNAME. It's
expanded once and once only, at template instantiation time, and has
no meaning to files that already exist. So there's nothing you can
change that will, say, magically change your organization name in your
sources from (to pick a random example) "Yahoo! Inc." to "Microsoft
Corporation".
Chris
_______________________________________________
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