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