Re: #if on SDK_NAME
Re: #if on SDK_NAME
- Subject: Re: #if on SDK_NAME
- From: Chris Espinosa <email@hidden>
- Date: Thu, 16 Jul 2009 19:53:10 -0700
On Jul 16, 2009, at 7:17 PM, Chris Suter wrote:
The values of the AvailabilityMacros definitions are in the form
1040, 1050
etc. for exactly this reason, which is yet another reason to use the
provided and supported mechanism instead of rolling your own
solution.
There are some cases (albeit rare) where you really want to switch
based on SDK, rather than the version of OS X that you want to support
and there doesn't appear to be any support for that. Probably for a
good reason mind (you'd have to retrospectively add it to older SDKs),
but still, it's an omission I think.
The droid you're looking for is MAC_OS_X_VERSION_MAX_ALLOWED. That is
the version number that directly corresponds to the SDK in use.
MAC_OS_X_VERSION_MIN_REQUIRED corresponds to the version of Mac OS X
you want to deploy on.
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden