Re: Getting a carbon's info string
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