• 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: Daniel Jalkut <email@hidden>
  • Date: Mon, 9 Jan 2006 14:33:38 -0500

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

  • Prev by Date: Re: Accessing the Preference setup of other application
  • Next by Date: Re: Guarding against missing ObjC implementation
  • Previous by thread: Setting values in InfoPlist.strings from Info.plist;
  • Next by thread: Re: Setting values in InfoPlist.strings from Info.plist;
  • Index(es):
    • Date
    • Thread