• 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: CFBundleVersion questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFBundleVersion questions


  • Subject: Re: CFBundleVersion questions
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 24 Jul 2001 08:46:23 -0700

On Tuesday, July 24, 2001, at 07:08 AM, Georg Tuparev wrote:

> 1. Some documents talk about format #.#.#, others about #.#.#d#. What
> is the correct format?

The format is that of the traditional Mac version number--I don't have a
formal description handy, but the possible formats include e.g. 1.2.3,
1.2.3a4, 1.2.3b4, 1.2.3d4.

> 4. Is there some API to access CFBundleVersion?

UInt32 CFBundleGetVersionNumber(CFBundleRef bundle);

returns the numeric encoding of the version number, like you would see
in a 'vers' resource, and suitable for numeric comparison.

> 5. Is it OK for my own application to use the version, or should I
> invent another key? My idea is while searching Plug Ins to load the one
> with the latest version. Is there an API that can help me here? (I know
> about [[NSBundle mainBundle] builtInPlugInsPath], but was wondering if
> there is something else).

We generally use the results of CFBundleGetVersionNumber() to compare
versions of bundles, so yes, this would be suitable.

Douglas Davidson


  • Follow-Ups:
    • Re: CFBundleVersion questions
      • From: Ali Ozer <email@hidden>
References: 
 >CFBundleVersion questions (From: Georg Tuparev <email@hidden>)

  • Prev by Date: re: Bundle and multiple classes (ScreenSaver related stuff)
  • Next by Date: Re: Goofy NSDrawer behavior
  • Previous by thread: CFBundleVersion questions
  • Next by thread: Re: CFBundleVersion questions
  • Index(es):
    • Date
    • Thread