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

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.

  • Prev by Date: Re: Copying Notification Dictonaries & sortingUsingSelector problems
  • Next by Date: Re: Centering an Image in an NSScrollView
  • Previous by thread: Re: Copying Notification Dictonaries & sortingUsingSelector problems
  • Next by thread: Re: NSBitmapImageRep and 0RGB data
  • Index(es):
    • Date
    • Thread