• 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: 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
  • Prev by Date: Deleting images from nib
  • Next by Date: RE: compiler bug??
  • Previous by thread: Re: Deleting images from nib
  • Next by thread: Shark for Java - 'the target process has already exited'?
  • Index(es):
    • Date
    • Thread