• 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
Version number objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Version number objects


  • Subject: Version number objects
  • From: Ken Tabb <email@hidden>
  • Date: Mon, 21 Dec 2009 15:18:04 +0000

Hi folks,

I've got an app that needs to keep track of version numbers (eg. "10.6.2") of things, and needs to be able to sort by these too. Is there a class in Cocoa that handles this?

I could have sworn I heard mention of it in a previous WWDC (probably about 10.5), but all attempts at searching result in a load of pages pointing me towards Info.plist to get the version number :-/

The other people who I went with think I'm dreaming it...

If one doesn't exist, then I'm guessing doing an NSString subclass would be the order of the day (so that I can support / sort alphanumeric version "numbers" such as 10C540, or 1.0.1.2b), and then scanning for each period or change from number <-> letter, to break the version number down into its component parts (eg. so that 10C540 ends up being {10, C, 540}?

Merry Christmas to all who celebrate it, and thanks in advance for any help you can give,
Ken


- - - - - - - - - -
Dr. Ken Tabb
Mac & UNIX Developer - Health & Human Sciences
Machine Vision & Neural Network researcher - School of Computer Science
University of Hertfordshire, UK


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Version number objects
      • From: Clark Cox <email@hidden>
  • Prev by Date: CSWeekView classes available
  • Next by Date: Is this possible?
  • Previous by thread: CSWeekView classes available
  • Next by thread: Re: Version number objects
  • Index(es):
    • Date
    • Thread