• 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
Re: Getting a carbon's info string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a carbon's info string


  • Subject: Re: Getting a carbon's info string
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Fri, 5 Nov 2004 19:26:15 +0100

At 9:50 Uhr -0600 05.11.2004, Dan Saul wrote:
What I am trying to do is  write an
updating system for game, so I need to get the version number of the
game before I can act on it.

For applications with info(strings) that is easy, but for carbon
applications not so much.

You're mixing things up here. That has nothing to do with Carbon. That is related to bundled vs. unbundled applications. A bundled Carbon app has an Info.plist.


For unbundled applications, you will have to look at the app's resources. NDResourceFork by Nathan Day should come in handy there. Looks for a 'plst' resource with ID 0 (zero). If you get that, its contents are the same as the Info.plist file would be.

If there's no 'plst' resource, you'll have to get the 'vers' resource with ID 1. It contains the version in binary coded decimal, and some other info.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Getting a carbon's info string (From: Dan Saul <email@hidden>)
 >Re: Getting a carbon's info string (From: Ricky Sharp <email@hidden>)
 >Re: Getting a carbon's info string (From: Dan Saul <email@hidden>)

  • Prev by Date: Re: Overriding -copyWithZone: the right way
  • Next by Date: Re: Overriding -copyWithZone: the right way
  • Previous by thread: Re: Getting a carbon's info string
  • Next by thread: nsmovieview controller and mp3 file
  • Index(es):
    • Date
    • Thread