Re: Using newer APIs and deprecated APIs for older releases...
Re: Using newer APIs and deprecated APIs for older releases...
- Subject: Re: Using newer APIs and deprecated APIs for older releases...
- From: August Hahn <email@hidden>
- Date: Tue, 03 Jan 2006 14:49:52 -0800
I thought I read somewhere that Apple's approach is to write something like
if ([myObject respondsToSelector:@selector(a10.4onlyselector)] == YES) {
// do 10.4 stuff here
} else {
// do 10.3 stuff here
}
>
> On Jan 3, 2006, at 2:18 PM, Chas Spillar wrote:
>
>> In the pre-carbon days we would use Gestalt() for these kinds of
>> things and the Apple position was to not check for OS, but check for
>> features.
>>
>> In the 10.x world, and specifically in Cocoa, what is the correct
>> way to do
>> this.
>
> I'd still recommend using Gestalt() to query for the OS version and
> make the decision using the result. I think there's a tech note
> floating around out there that suggests checking the system version
> property list file, but since that file is an implementation detail,
> I wouldn't recommend relying on that.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
>
>
_______________________________________________
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