Pulling out your Mac app version number

Posted by lori, Wed Sep 16 23:14:00 UTC 2009

File this one under useful snippets for Mac Cocoa development. How to extract the application version number out of your app's info.plist file.


[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];

Filed Under: | Tags:

Comments

Have your say

A name is required. You may use HTML in your comments.