Re: Tiger-style toolbars
Re: Tiger-style toolbars
- Subject: Re: Tiger-style toolbars
- From: Uli Kusterer <email@hidden>
- Date: Sun, 20 Nov 2005 01:19:16 +0100
Am 19.11.2005 um 01:48 schrieb Seth Willits:
On Nov 18, 2005, at 3:32 PM, Uli Kusterer wrote:
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();
Now if you compile that on 10.4 and run it on 10.3 will actually
run without some kind of framework version error?
Depends on what you do in tenfourspecificmethod(). You can call a
method added to an object/class. You can't use any newly-added
classes directly, but if you use it through NSClassFromString(). For
most of the other stuff, you'll usually want to load a bundle
containing the code that'll only run on the new version, or use weak
linking.
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