• 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: Deprecated APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deprecated APIs


  • Subject: Re: Deprecated APIs
  • From: Andreas Mayer <email@hidden>
  • Date: Tue, 23 Feb 2010 13:29:47 +0100


Am 23.02.2010 um 11:09 Uhr schrieb charisse napeÿfffff1as:

I am not sure if this problem has already been submitted but how do I define two APIs, one that is supported from Leopard down and
another that is only supported in Snow Leopard if I only have one binary for all OSes?

See

http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/cross_development/

I tried using the #if conditionals e.g. #if MAC_OS_X_VERSION_MAX_ALLOWED ......
but my application crashes. It will successfully build on compile time but crashes during runtime

It sounds like you build for the 10.6 SDK but expect the code to run on earlier systems. That will not work.
You could decide at runtime which API to use, but in the case you mentioned, that's of no value.
While - beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo : is deprecated, it's still there in 10.6. So you don't gain anything by not using it.
I suggest you only move over to the new API when you don't have to support older systems any more.



Andreas_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Deprecated APIs
      • From: charisse napeÿfffff1as <email@hidden>
References: 
 >Deprecated APIs (From: charisse napeÿfffff1as <email@hidden>)

  • Prev by Date: Re: High Level Toolkit -- is it obsolete or not?
  • Next by Date: Re: High Level Toolkit -- is it obsolete or not?
  • Previous by thread: Re: Deprecated APIs
  • Next by thread: Re: Deprecated APIs
  • Index(es):
    • Date
    • Thread