On Oct 25, 2013, at 10:53 AM, Sean McBride wrote:
> I agree with others that NSAppKitVersionNumber and friends are usually
> preferable, but sometimes it is useful/required to get the actual numbers
> "10", "8", and "5" in a parseable/non-localized way. Parsing uname results
> is fragile. o
For any Apple people who care, there's now rdar://15320964 to help with
this conundrum. For anyone else, feel free to file your bugs.
--
Gary L. Wade
http://www.garywade.com/
On 10/25/2013 8:53 AM, "Sean McBride" wrote:
>On Fri, 25 Oct 2013 06:02:23 -0700, Gary L. Wade said:
>
>>Not to say usi
On Fri, 25 Oct 2013 06:02:23 -0700, Gary L. Wade said:
>Not to say using the OS version number is right in your case, but when I
>need a parseable OS version number without relying upon Gestalt, I get the
>ProductVersion key from /System/Library/CoreServices/SystemVersion.plist
>and parse that int
Not to say using the OS version number is right in your case, but when I
need a parseable OS version number without relying upon Gestalt, I get the
ProductVersion key from /System/Library/CoreServices/SystemVersion.plist
and parse that into an NSIndexPath, which works great with encapsulating
10.8.
Maybe I am too used to tackle cross-platform Objective-C. Whenever I am doing
system detection now I do the following: uname() and dlsym(RTLD_DEFAULT,
“UIApplicationMain”). This will reliably tell OS X (Darwin/NULL), iOS
(Darwin/valid pointer), Linux+GNUstep (Linux/NULL) and
Android+GNUstep(Lin
On Oct 24, 2013, at 10:36 PM, Maxthon Chan wrote:
> Well I prefer uname() as it is 1) POSIX standard, cross-platform method
If you're already working around an OS bug then it should be acceptable to use
OS-specific means to do so.
> 2) more fine grained as it tells minor versions apart. (e.g.
> On Oct 24, 2013, at 10:36 PM, Maxthon Chan wrote:
>
> Well I prefer uname() as it is 1) POSIX standard, cross-platform method and
> 2) more fine grained as it tells minor versions apart. (e.g. I can tell
> Mavericks DP4 apart from Mavericks DP7 from Mavericks GM from App Store
> release of
Well I prefer uname() as it is 1) POSIX standard, cross-platform method and 2)
more fine grained as it tells minor versions apart. (e.g. I can tell Mavericks
DP4 apart from Mavericks DP7 from Mavericks GM from App Store release of
Mavericks from Mavericks 10.9.1)
On Oct 25, 2013, at 13:29, Greg
On Oct 24, 2013, at 9:46 PM, Gerriet M. Denkmann wrote:
> On 25 Oct 2013, at 11:24, Greg Parker wrote:
>> On Oct 24, 2013, at 8:49 PM, Gerriet M. Denkmann
>> wrote:
>>> The documentation tells me that NSProcessInfo operatingSystemVersionString
>>> "is human readable, localized, and is appropri
On 25 Oct 2013, at 11:24, Greg Parker wrote:
> On Oct 24, 2013, at 8:49 PM, Gerriet M. Denkmann wrote:
>> The documentation tells me that NSProcessInfo operatingSystemVersionString
>> "is human readable, localized, and is appropriate for displaying to the
>> user. This string is not appropria
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
On Oct 24, 2013, at 8:49 PM, Gerriet M. Denkmann 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 parsin
On 25 Oct 2013, at 10:53, Maxthon Chan 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 1
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.
On Oct 25, 2013, at 11:49, Gerriet M. Denkmann wrote:
> The documentation tells me that NSProcessInfo operatingSystemVersionString
> "is human readable, lo
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...
15 matches
Mail list logo