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

Re: Using version number in code


  • Subject: Re: Using version number in code
  • From: Chris Paveglio <email@hidden>
  • Date: Fri, 21 Oct 2011 09:55:46 -0700 (PDT)

Cool, Thanks everyone!


----- Original Message -----
Subject: Re: Using version number in code

Chris,

You can get those values like this:

NSDictionary *infodict = [[NSBundle mainBundle] infoDictionary];
NSString *bundleVersion = [dict valueForKey:@"CFBundleVersion"];
NSString *shortVersion = [dict valueForKey:@"CFBundleShortVersionString"];
CGFloat ver = [shortVersion floatValue];

Cheers,

Martin
_______________________________________________

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

References: 
 >Using version number in code (From: Chris Paveglio <email@hidden>)
 >Re: Using version number in code (From: Martin Hewitson <email@hidden>)

  • Prev by Date: Re: Using version number in code
  • Next by Date: Re: Core Data: Determine if managed object is deleted
  • Previous by thread: Re: Using version number in code
  • Next by thread: 2nd table array linked to 1st table selection, updating
  • Index(es):
    • Date
    • Thread