Re: Setting values in InfoPlist.strings from Info.plist;
Re: Setting values in InfoPlist.strings from Info.plist;
- Subject: Re: Setting values in InfoPlist.strings from Info.plist;
- From: "Matt Budd (Madentec)" <email@hidden>
- Date: Mon, 9 Jan 2006 15:28:20 -0700
Hey Daniel,
Thanks for the tip..this is exactly what I was looking for. I simply
had to put those two keys (the short version and get-info) into the
info.plist and not infoplist.strings file and then the build property
idea worked perfectly. Those don't really need to be localized anyway
so it's all good.
- Matt
On Jan 9, 2006, at 12:33 PM, Daniel Jalkut wrote:
Hi Matt - I didn't set things up exactly as you're describing, but
my write-up on this subject may be enlightening:
http://www.red-sweater.com/blog/?p=32
Daniel
On Jan 9, 2006, at 2:01 PM, Matt Budd (Madentec) wrote:
Hello all,
I want to set the following values in my InfoPlist.strings file:
CFBundleShortVersionString = "1.0";
CFBundleGetInfoString = "Version 1.0; Copyright My Company";
However, there is also the following key in the Info.plist file
(and this key is set by the target properties in Xcode):
<key>CFBundleVersion</key>
<string>1.0</string>
So basically, I want to have to change the version number only
once (i.e. change it through Xcode which changes the Info.plist
property). Is there a way that I can make these InfoPlist.strings
entries reference the Info.plist key. Something like maybe the
following:
CFBundleShortVersionString = [CFBundleVersion];
CFBundleGetInfoString = "Version " + [CFBundleVersion] + ";
Copyright My Company";
It's better to only have to change the version in once place, but
it would also help since the InfoPlist.strings would then be
correct if I had multiple targets that had their own different
versions. Any suggestions?
- Matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden