• 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: XC3: text macros, autocompletion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XC3: text macros, autocompletion


  • Subject: Re: XC3: text macros, autocompletion
  • From: David Ewing <email@hidden>
  • Date: Thu, 29 Nov 2007 16:55:36 -0700


On Nov 25, 2007, at 5:06 PM, Kurt Stoll wrote:


Dave,

If I'm not pushing my luck, I have one more question. There are several predefined variables in the text macros. $(YEAR) was in C.xctxtmacro, which prompted me to try a few others. I found $ (DATE), $(FILENAME), and $(USERNAME) with the obvious definitions. Can we get a full list of available variables? In particular, I'd like to have something like $(LONGUSERNAME), but could not find it.

I believe this is the full list:

DATE
FILEBASENAME
FILEBASENAMEASIDENTIFIER
FILEBASENAMEASXML
FILEEXTENSION
FILENAME
FULLUSERNAME
ORGANIZATIONNAME
PROJECTNAME
PROJECTNAMEASIDENTIFIER
PROJECTNAMEASXML
TIME
USERNAME
UUID
UUIDASIDENTIFIER
YEAR

(So FULLUSERNAME is what you're looking for.)

You can also set the PBXCustomTemplateMacroDefinitions user default to a dictionary of definitions. The most common use of this is:

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ ORGANIZATIONNAME = "My Company"; }'

Dave
_______________________________________________
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


References: 
 >XC3: text macros, autocompletion (From: Fritz Anderson <email@hidden>)
 >Re: XC3: text macros, autocompletion (From: Kurt Stoll <email@hidden>)
 >Re: XC3: text macros, autocompletion (From: Kurt Stoll <email@hidden>)

  • Prev by Date: Re: XC3: text macros, autocompletion
  • Next by Date: Re: Syntax highlighting for scripting languages
  • Previous by thread: Re: XC3: text macros, autocompletion
  • Next by thread: Re: XC3: text macros, autocompletion
  • Index(es):
    • Date
    • Thread