Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining OS version



On 18/10/05, Graham J Lee <email@hidden> wrote:
> Is it not "good enough" to check the kern.osrelease sysctl?  I doubt
> there are that many 10.3.9 systems out there which aren't running on
> version 7.9.x of the OS....

It's possible that not every OS release will bump xnu, so the
kern.osrelease won't change. Not to mention, sysctl is more effort to
call than gestalt. Also, Apple has changed the Darwin versioning
scheme at least once (1.4.2 -> 5.3 or something equally bizarre), so I
wouldn't rely on it.

As Sean said, it depends WHY you're testing the OS version. However,
gestaltSystemVersion should reliably return the OS version, which is
what the OP wanted.

 -- Finlay
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Determining OS version (From: Jerry Krinock <email@hidden>)
 >Re: Determining OS version (From: "Paul J. Lucas" <email@hidden>)
 >Re: Determining OS version (From: "Sean McBride" <email@hidden>)
 >Re: Determining OS version (From: Graham J Lee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.