[Newbie] read version number from installed package
[Newbie] read version number from installed package
- Subject: [Newbie] read version number from installed package
- From: Jens Frederich <email@hidden>
- Date: Tue, 3 Jun 2003 16:49:00 +0200
Hi,
I've follow problem.
With this message I readout the version number from my current
application.
[ gVersion setStringValue: [ NSString stringWithFormat: [ gVersion
stringValue ],
[[ self bundle ] objectForInfoDictionaryKey:
@"CFBundleShortVersionString" ],
[[[ self bundle ] objectForInfoDictionaryKey:
@"CFBundleVersion" ] intValue ]]];
How can I determine / read the version number from an installed
package? For example, a package located at
/Library/Receipts/Sample.pkg/Contents... . Thank you!
Jens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.