• 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: Ali Ozer <email@hidden>
  • Date: Tue, 24 Jul 2001 10:40:25 -0700

In addition, the standard Cocoa about panel will also display CFBundleVersion if available. For instance, in TextEdit: "1.0 (v159)". 1.0 is CFBundleShortVersionString, the "marketing" version and 159 is CFBundleVersion, the "build" version.
Ali


On Tuesday, July 24, 2001, at 08:46 , Douglas Davidson wrote:

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


References: 
 >Re: CFBundleVersion questions (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Writing objects to disk and retrieving
  • Next by Date: Re: Help with help
  • Previous by thread: Re: CFBundleVersion questions
  • Next by thread: Clearing an NSView
  • Index(es):
    • Date
    • Thread