• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Newbie] read version number from installed package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.

  • Follow-Ups:
    • Re: [Newbie] read version number from installed package
      • From: Alex Rice <email@hidden>
  • Prev by Date: [ANN] F-Script 1.2.4 Released – Open-source, embeddable, Cocoa scripting layer
  • Next by Date: Default NSButton over NSImageView shows ugly "halo"
  • Previous by thread: [ANN] F-Script 1.2.4 Released – Open-source, embeddable, Cocoa scripting layer
  • Next by thread: Re: [Newbie] read version number from installed package
  • Index(es):
    • Date
    • Thread