• 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
Using version number in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using version number in code


  • Subject: Using version number in code
  • From: Chris Paveglio <email@hidden>
  • Date: Fri, 21 Oct 2011 08:54:06 -0700 (PDT)

In an app's Info.plist there are the 2 values for Bundle Version. Is there a way to use those directly in a class, in code? For example, I often like to put the version number of an app in the title bar or in part of the window (I mostly develop in-house for my company so UI standards can suit our needs, users can see immediately if it's the newest version). So far I've simply made a variable or set the version number directly (as a string) in my AppDelegate class, but if I could somehow use the Bundle Version or Bundle Version String Short that would be great. Any suggestions?
Chris
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Using version number in code
      • From: Martin Hewitson <email@hidden>
  • Prev by Date: Re: Exception when entering too big value in text field (with number formatter)
  • Next by Date: Re: Core Data: Determine if managed object is deleted
  • Previous by thread: Re: Prevent table sorting
  • Next by thread: Re: Using version number in code
  • Index(es):
    • Date
    • Thread