Re: Getting the version of an application.
Re: Getting the version of an application.
- Subject: Re: Getting the version of an application.
- From: Chris Ridd <email@hidden>
- Date: Mon, 01 Jul 2002 09:42:03 +0100
On 29/6/02 11:41 pm, Ricci Adams <email@hidden> wrote:
>
Thanks for the idea Finlay,
>
>
Wouldn't NSBundle/CFBundle only work for applications with an Info.plist
>
file, from which I could extract the version string? What about Carbon
>
and Classic applications, would I have to pull the version number from
>
the "vers" resource in the resource fork?
Carbon apps aren't supposed to have resource forks, according to page 170 of
Apple's System Overview document:
-----
Resource Forks
Before Mac OS X and Carbon, application resources were put in the resource
fork of the application executable. That policy has now changed. In Mac OS X
and for Carbon applications generally, resources should be put in the data
fork of a separate resource file, not the resource fork of the executable.
-----
However I suspect that many Carbon developers don't follow that policy. I
just checked MS Office, and those apps all have rsrc forks, sigh :-(
Cheers,
Chris
_______________________________________________
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.