Re: Using version number in code
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