Darwin is the name of OS X kernel so that is plain okay. The release 13.0.0 means NeXTSTEP 13.0.0 (Do you remember that what was NeXTSTEP later became OS X?) which means OS X 10.9.0. The equation is that NeXTSTEP a.b.c = OS X 10.(a-4).b (OS X 10.0 = NeXTSTEP 4, the last version of NeXTSTEP that is publicly available was 3.3)
On Oct 25, 2013, at 12:21, Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: > > On 25 Oct 2013, at 10:53, Maxthon Chan <xcvi...@me.com> wrote: > >> You can use uname(3) (on sone other system it is listed as uname(2)) - that >> is the most classic UNIX way of telling a system from another. > > This returns: > sysname = "Darwin" > machine = "x86_64" > release = "13.0.0" > version = "Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; > root:xnu-2422.1.72~6/RELEASE_X86_64" > > Maybe there is something which gives me "10.9" or "10.8.5" or anything more > Mac-like? > > >> >> On Oct 25, 2013, at 11:49, Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: >> >>> The documentation tells me that NSProcessInfo operatingSystemVersionString >>> "is human readable, localized, and is appropriate for displaying to the >>> user. This string is not appropriate for parsing." >>> >>> Ok. So what do I use for parsing? >>> >>> like: if ( current_os_x_version < 10.9 ) then do something... >>> >>> Once there was Gestalt, but this is deprecated since 10.8. >>> >
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com