• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Age Old Question: How Do You Set __MyCompanyName__
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Age Old Question: How Do You Set __MyCompanyName__


  • Subject: Re: Age Old Question: How Do You Set __MyCompanyName__
  • From: George Warner <email@hidden>
  • Date: Thu, 18 Dec 2008 17:44:42 -0800
  • Thread-topic: Age Old Question: How Do You Set __MyCompanyName__

On Thu, 18 Dec 2008 14:32:03 -0800, Andrei Freeman <email@hidden>
wrote:

> I remember reading that the company setting in your addressbook "me"
> item also gets picked up if you don't set it by the defaults.
>
> If you haven't set a "me" card with company, then you get the default.

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!) ;-)

--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)


 _______________________________________________
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

  • Follow-Ups:
    • Re: Age Old Question: How Do You Set __MyCompanyName__
      • From: Jack Repenning <email@hidden>
  • Prev by Date: Re: SenTestingKit not found for Test file relocated across targets
  • Next by Date: Re: Shark + Intel compilers = no source view?
  • Previous by thread: Re: Age Old Question: How Do You Set __MyCompanyName__
  • Next by thread: Re: Age Old Question: How Do You Set __MyCompanyName__
  • Index(es):
    • Date
    • Thread