• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checking OS Version with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Checking OS Version with Cocoa (From: MarketLogix Developer <email@hidden>)

  • Prev by Date: Re: Quickly drawing non-antialiased, discrete, pixels
  • Next by Date: Re: Making iTunes-style NSTableView
  • Previous by thread: Re: Checking OS Version with Cocoa
  • Next by thread: Re: Checking OS Version with Cocoa
  • Index(es):
    • Date
    • Thread