FROM : Gideon King
DATE : Fri Jan 03 23:11:10 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Fri Jan 03 23:11:10 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Raymund Beyer | Jan 2, 16:17 | |
| Ryan Dingman | Jan 3, 01:01 | |
| Kent Sandvik | Jan 3, 01:20 | |
| Gideon King | Jan 3, 23:11 |






Cocoa mail archive

