Re: XCode 2.1 Preprocessing Info.plist
Re: XCode 2.1 Preprocessing Info.plist
- Subject: Re: XCode 2.1 Preprocessing Info.plist
- From: Steve Mills <email@hidden>
- Date: Thu, 8 Sep 2005 15:30:42 -0500
On Jul 20, 2005, at 14:15, Dair Grant <email@hidden> wrote:
Although invoking the preprocessor is a good step forward, what I
would
really like is some kind of dedicated preprocessor as per CodeWarrior.
Ideally without the .plc-style syntax, but something that could:
1. Preprocess .plist and .strings files
2. Automatically de-quote quoted strings in .plist files (but not in
.strings files)
3. Automatically concatenate strings ("foo" "bar" == "foobar")
I second that. I don't mind the .plc syntax, but I'll take anything
that allows me to include macros in a .plist and do concatenation. In
CW, we built the Info.plist with a .plc file. The app version was:
key CFBundleLongVersionString
value string __OUTPUT_FILENAME__ " version " kAppVersionStr ",
©1997-2005 MultiAd, Inc."
kAppVersionStr was built right in the .plc like so (for the beta build):
#define kAppVersionStr __STRING__(kMajor) "." __STRING__(kMinor) "."
__STRING__(kBugFix) "b" __STRING__(kBuild)
This way, we could keep 1 file that had the verision and build
numbers, then everything else would use that. It only had to be
changed in ONE place every time we incremented the build number
(usually weekly). I would've also liked to be able to use a __YEAR__
macro so the copyright year would always be up to date, but that's
only available for .r files.
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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