• 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: Setting values in InfoPlist.strings from Info.plist;
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Setting values in InfoPlist.strings from Info.plist; (From: "Matt Budd (Madentec)" <email@hidden>)
 >Re: Setting values in InfoPlist.strings from Info.plist; (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: ANN: CSMail client-based mail delivery framework released
  • Next by Date: Screen saver with a configure sheet?
  • Previous by thread: Re: Setting values in InfoPlist.strings from Info.plist;
  • Next by thread: Binding NSPopUpButton
  • Index(es):
    • Date
    • Thread