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: "Jason Foreman" <email@hidden>
- Date: Thu, 18 Dec 2008 13:39:23 -0600
On Thu, Dec 18, 2008 at 1:28 PM, George Warner <email@hidden> wrote:
> Because these macro expansions only happen when the project is initially
> created (expanded from a project template) when would you have the
> opportunity to set it? After you've created a new project (too late)? Or do
> you think this should be prompted for at project creation time?
Does the expansion not also happen every time you create a new source file?
> Personally, I just set the PBXCustomTemplateMacroDefinitions default (if I
> want to change it) before I create a new project:
>
> defaults read com.apple.XCode PBXCustomTemplateMacroDefinitions {
> FULLUSERNAME = "George Warner";
> ORGANIZATIONNAME = "Apple, Inc.";
> }
>
> Done! (ship it! ;-)
I'd say most people probably add files to existing projects more often
than they create new projects. So having a way to say "from now on,
for this project, use 'Foo, Inc.' as the ORGANIZATIONNAME in new
files" would be nice. It'd also be helpful so that pre-existing
projects could define the organization and new developers adding files
will have the correct text expanded in any new files.
Then again, maybe another option would be custom templates that don't
bother with the expanded text in the comments. Less chance for
disagreement over what should be put there. :)
Jason
_______________________________________________
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