Re: Checking OS Version with Cocoa
Re: Checking OS Version with Cocoa
- Subject: Re: Checking OS Version with Cocoa
- From: Quentin Mathé <email@hidden>
- Date: Mon, 6 Jan 2003 17:49:10 +0100
Le dimanche, 5 jan 2003, ` 03:04 Europe/Paris, MarketLogix Developer a
icrit :
I suggest the portable way when possible:
int platform( char *platformBuff )
{
struct utsname platform;
bzero(&platform,sizeof(platform));
if ( uname(&platform)<0 )
return errno;
sprintf(platformBuff,"<OS:%s>-<REV:%s>-<CPU:%s>",
platform.sysname, platform.release, platform.machine
);
return 0;
}
I tested that, and you get the Darwin version number, it's not very
helpfull for the applications which use the frameworks over Darwin.
The only solution is still the Gestalt manager.
--
Quentin Mathi
email@hidden
_______________________________________________
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.