MariusP
MariusP

Reputation: 492

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!

Upvotes: 0

Views: 553

Answers (1)

Sudo
Sudo

Reputation: 991

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.

Upvotes: 3

Related Questions