• 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: auto InfoPlist.strings updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto InfoPlist.strings updating


  • Subject: Re: auto InfoPlist.strings updating
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 10 Nov 2004 16:30:57 -0800


On Nov 10, 2004, at 2:33 PM, Craig Hunter wrote:



Does anyone have good tricks for automatically updating the info in the
InfoPlist.strings file in a project?? I am using a compiler define to set
the version number in my software (-DVERS=110904 for instance) and this gets
used to display the version number on the splash screen and status console
in my app. I still have to manually edit the InfoPlist.strings file if I
want the version number displayed in the finder and get info panels. As far
as I can tell, the InfoPlist.strings file does not get compiled or processed
in any way, it just gets placed in the app's localized resources.


By the way, this approach was inherited from a legacy program. Perhaps it
would make more sense to rework the app to use the InfoPlist.strings
attributes directly? If so, what's the procedure to pull out, say
"CFBundleShortVersionString" and use it in the app as a string?

You can get that kind of info from

[[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleShortVersionString"];

-jcr









John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html


_______________________________________________ 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: 
 >auto InfoPlist.strings updating (From: Craig Hunter <email@hidden>)

  • Prev by Date: Re: Loadable bundles and common files
  • Next by Date: Re: Why "Add" button for Cocoa Bindings?
  • Previous by thread: auto InfoPlist.strings updating
  • Next by thread: Registration Code
  • Index(es):
    • Date
    • Thread