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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com