[CocoaApp isThisTiger]
Fabian Schuiki
fabianschuiki at bluewin.ch
Mon Oct 22 10:56:57 PDT 2007
Hi,
I'm usign the AppKit Version to get the system version (code was
written for Tiger):
LSESystemVersion LSECurrentSystemVersion()
{
switch ((int)floor(NSAppKitVersionNumber)) {
case NSAppKitVersionNumber10_0:
return LSESystemVersionCheetah;
break;
case NSAppKitVersionNumber10_1:
return LSESystemVersionPuma;
break;
case NSAppKitVersionNumber10_2:
return LSESystemVersionJaguar;
break;
case NSAppKitVersionNumber10_3:
return LSESystemVersionPanther;
break;
}
if ((int)floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_3)
return LSESystemVersionTiger;
return LSESystemVersionUnknown;
}
Best,
Fabian
Fabian Schuiki
fabianschuiki at bluewin.ch
Am 22.10.2007 um 06:31 schrieb David Dunham:
> I'd like to disable some UI if my Cocoa application is running
> under Tiger (as opposed to Leopard). Gestalt would work perfectly
> well, but I wonder what the hard core "no Carbon" Cocoa developers
> prefer to determine this. Or if AppKit version is preferred.
>
> David Dunham A Sharp, LLC
> Voice/Fax: 206 783 7404 http://a-sharp.com
> Efficiency is intelligent laziness.
>
> _______________________________________________
> MacOSX-dev mailing list
> MacOSX-dev at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
More information about the MacOSX-dev
mailing list