Re: XCode 2.1 Preprocessing Info.plist
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