MariusP MariusP - 1 year ago 100
Objective-C Question

Objective C get version for specified app

How can I get app version (or more info) for an input like

/Applications/Firefox.app
in Objective C?

Thank you!

Answer Source

Informations about an app are located in the Info.plist file.

For example, /Applications/Firefox.app/Contents/Info.plist.

You can parse it in a NSDictionary.

For the app version, the key is CFBundleShortVersionString.