Re: SDK 10.6 with Target 10.5
Re: SDK 10.6 with Target 10.5
- Subject: Re: SDK 10.6 with Target 10.5
- From: Chris Hanson <email@hidden>
- Date: Sun, 13 Mar 2011 21:34:17 -0700
On Mar 13, 2011, at 4:19 PM, Leonardo wrote:
> on Xcode 4.0, I have noticed, just accidentally, that when the Base SDK is
> set to Mac OS X 10.6 and the deployment target to 10.5, I don't get any
> alert about the use of not-available-APIs.
This is how the Base SDK and Deployment Target build settings have worked since their introduction. The availability macros to which they’re an input don’t issue any warnings for new API that isn’t present on an older OS because that would potentially obscure other warnings.
Their intent is to enable you to write software that takes advantage of features of the most recent operating system while still being able to write code that runs on the latest operating system; you’re using them correctly. You simply need to be aware of when you’re using newer-OS features and wrap them in runtime checks.
-- Chris
_______________________________________________
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