Re: Tiger-style toolbars
Re: Tiger-style toolbars
- Subject: Re: Tiger-style toolbars
- From: Uli Kusterer <email@hidden>
- Date: Sat, 19 Nov 2005 00:32:38 +0100
Am 18.11.2005 um 16:01 schrieb I. Savant:
You can do things only for specific OS versions by using the
following:
#ifdef MAC_OS_X_VERSION_10_4
//10.4-specific code here
#endif
I think you meant to write: (untested, written in Mail):
unsigned long versNum;
if( noErr == Gestalt( gestaltSystemVersion, &versNum ) && versNum >=
0x1040 )
tenfourspecificmethod();
Not sure whether OS X is returned as 0x1000 or 0x0A00, but it's some
sort of binary-coded decimal. The docs for Gestalt should give you
the info. Also, I'm not sure whether they're still adding stuff to
Gestalt, but maybe you can find a Gestalt selector that actually
tells you whether unified look is available, which would be better
than relying on the system version in case another step backwards
like the move from G4 to G3 in Rosetta happens.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden