• 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: Info.plist preprocessor macro expansion, space between tokens
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info.plist preprocessor macro expansion, space between tokens


  • Subject: Re: Info.plist preprocessor macro expansion, space between tokens
  • From: Bernard Desgraupes <email@hidden>
  • Date: Sat, 29 Apr 2006 07:10:26 +0200



Alex Sheh wrote:

Hi all,
Is there anyway to get the Info.plist preprocessor NOT to add whitespace
between tokens during macro expansion?

Info.plist prefix header
#define MAJOR 1
#define MINOR 2
#define MICRO 3

Info.plist contents
<key> CFBundleShortVersionString <\key>
<string> MAJOR.MINOR.MICRO <\string>

With these values I get 1 . 2 . 3 in the application's Preview Pane.
What I'd like to see is 1.2.3 without spaces separating the version
numbers and dots.  Is this possible?



Not a direct answer to your question but a possible workaround: use a plc file and PList Compiler. Yhis runs as a Shell Script Phase to automatically generate your Info.plist. See
http://sourceforge.net/projects/plistcompiler



HTH

Bernard

_______________________________________________
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: 
 >Info.plist preprocessor macro expansion, space between tokens (From: "Alex Sheh" <email@hidden>)

  • Prev by Date: Re: Configuring XCode to use remote subversion repository
  • Next by Date: Bug in PrefPane default project (window width)
  • Previous by thread: Re: Info.plist preprocessor macro expansion, space between tokens
  • Next by thread: Re: Info.plist preprocessor macro expansion, space between tokens
  • Index(es):
    • Date
    • Thread