• 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: XCode 2.1 Preprocessing Info.plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 2.1 Preprocessing Info.plist


  • Subject: Re: XCode 2.1 Preprocessing Info.plist
  • From: Tom Saxton <email@hidden>
  • Date: Tue, 19 Jul 2005 17:54:49 -0700

I'm totally digging preprocessing the Info.plist, but the OCD is
kicking in so I'd like to only have one place where I set the version
number. The problem is that the C files want the version number in a
quoted string and the Info.plist wants it not in a string.

In the Info.plist I have:

	<key>CFBundleVersion</key>
	<string>kVersNumRaw</string>

So I have to do something like this:

#define kVersNumRaw    1.20a2
#define kVersNumStr      "1.20a2"

I've tried several things like:

#define kVersNumRaw    1.20a2
#define Quote(s) "s"
#define kVersNumStr      Quote(kVersNumRaw)

I tried lots of other wacky tricks using the ## operator, etc. No joy.

Does someone know a clever trick that will turn an unquoted thing into
a quoted string, or vice versa?

--
Tom Saxton
email@hidden
 _______________________________________________
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: XCode 2.1 Preprocessing Info.plist
      • From: Greg Hurrell <email@hidden>
    • Re: XCode 2.1 Preprocessing Info.plist
      • From: Olivier Tristan <email@hidden>
References: 
 >Re: XCode 2.1 Preprocessing Info.plist (From: Carbon <email@hidden>)

  • Prev by Date: CSE and the single programmer
  • Next by Date: Re: "Program exited with status value:45. mi_cmd_stack_list_frames_lite: No stack." Eh?
  • Previous by thread: Re: XCode 2.1 Preprocessing Info.plist
  • Next by thread: Re: XCode 2.1 Preprocessing Info.plist
  • Index(es):
    • Date
    • Thread