• 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
Getting the version of an application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the version of an application


  • Subject: Getting the version of an application
  • From: Stéphane Sudre <email@hidden>
  • Date: Sat, 10 Apr 2004 11:08:42 +0200

Does someone know if there's some code available somewhere which allows to get the version of an application as a NSString when you have the absolute path of the application?

I can easily find the version for Cocoa Bundle applications using the NSBundle API, but this leaves 2 cases to handle (if I forget Java stuff probably):

- a Carbon application with no bundle hierarchy: I can find this using the 'vers' resource, so no big issue

- a Carbon application with a bundle hierarchy of resource forks: this is the case I don't have a clear idea about how to handle it.

I had a look at LaunchService just in case but no solution there.

So if there was some code available (maybe even an API but I haven't found it yet) which is doing this, I would be interested.
_______________________________________________
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: Getting the version of an application
      • From: John Randolph <email@hidden>
  • Prev by Date: Re: Send Email with "deliverMessage"
  • Next by Date: Re: Fast file access (was Re: [ANN] Shovel - Third-Party "Software Update")
  • Previous by thread: Re: Dragging Views and Cursor
  • Next by thread: Re: Getting the version of an application
  • Index(es):
    • Date
    • Thread