• 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: Using newer APIs and deprecated APIs for older releases...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Using newer APIs and deprecated APIs for older releases... (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Uniform Type Identifiers (UTIs)
  • Next by Date: Synchronized outlets and actions
  • Previous by thread: Re: Using newer APIs and deprecated APIs for older releases...
  • Next by thread: Binding to Self Update
  • Index(es):
    • Date
    • Thread