> errCode = (Gestalt(gestaltSystemVersion,&versionDetected));
>
> the OS version number is returned in "versionDetected" as a hex number for
> example:
>
> 0x0922, 0x1000, 0x1010, 0x1020, 0x1030
It's not hex, it's BCD.
hth
meeroh

Signature
If this message helped you, consider buying an item
from my wish list: <http://web.meeroh.org/wishlist>
Mike Cohen - 27 Jan 2004 02:21 GMT
> > errCode = (Gestalt(gestaltSystemVersion,&versionDetected));
> >
> > the OS version number is returned in "versionDetected" as a hex number for
> > example:
> >
> > 0x0922, 0x1000, 0x1010, 0x1020, 0x1030
How about the build number? I've never been able to figure that one out.

Signature
Mike Cohen - mike3k <at> onepost <dot> net
Personal: http://www.mc-development.com/
Mac News: http://www.macmegasite.com/
Miro Jurisic - 27 Jan 2004 06:17 GMT
> How about the build number? I've never been able to figure that one out.
Use CFPropertyList to load /System/Library/CoreServices/SystemVersion.plist.
hth
meeroh

Signature
If this message helped you, consider buying an item
from my wish list: <http://web.meeroh.org/wishlist>