Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to get warnings for 10.5 only calls?



On 30 Jan 2008, at 3:29 PM, Knowledge Engineering wrote:

(1) Using Xcode 3.0 on Leopard for a project whose deployment target is 10.4 and above, what is the easiest way to get warning messages if I use a 10.5 - only function call?

Change the target's SDK from 10.5 to 10.4u. That will get you warnings/ errors upon finding things that aren't defined for 10.4. The formula is that you set the SDK for the highest version of the OS from which you want features, and the deployment target for the lowest version you'll permit the application to run on.


If it's just a matter of detecting 10.5 calls (that is, you intend to take advantage of weak-linking and Objective-C introspection to avoid using them on 10.4), you can switch back to the 10.5 SDK once you've done your detecting.

	— F

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Best way to get warnings for 10.5 only calls? (From: Knowledge Engineering <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.