MariusP MariusP - 5 months ago 22
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

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.

Comments