FROM : M. Uli Kusterer
DATE : Fri Nov 05 19:26:15 2004
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
DATE : Fri Nov 05 19:26:15 2004
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
| Related mails | Author | Date |
|---|---|---|
| Dan Saul | Nov 5, 14:49 | |
| Ricky Sharp | Nov 5, 15:51 | |
| Dan Saul | Nov 5, 16:50 | |
| Frederick Cheung | Nov 5, 18:01 | |
| Ricky Sharp | Nov 5, 19:09 | |
| M. Uli Kusterer | Nov 5, 19:26 |






Cocoa mail archive

