Re: System information
Re: System information
- Subject: Re: System information
- From: Gideon King <email@hidden>
- Date: Sat, 4 Jan 2003 08:11:10 +1000
You can get various bits of useful information using the Gestalt
command e.g. you can get the system version using the following command:
SInt32 vers;
Gestalt(gestaltSystemVersion, &vers);
The system version information is in the format 0x00001023 where the 10
is the version, 2 is the minor version, and the 3 is the release. So if
you wanted to extract the information in some more useful format, you
would probably want to do something like:
int minor;
minor = (vers & 0x000000f0)/0x00000010;
HTH
Gideon.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.