OK, I must be missing something simple. :)
I'm reading technote 2064 about Availability Macros. It says "One
common
usage of these macros would be to temporarily set
MAC_OS_X_VERSION_MAX_ALLOWED to be equal to
MAC_OS_X_VERSION_MIN_REQUIRED
and rebuild one's application to see which APIs are being used that are
not present in the minimum required OS version (compilation will
produce
errors for each usage of the now suddenly unavailable routines)".
So I tried adding the following to my prefix header, before including
Cocoa:
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_2
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_2
Instead, I tried putting "-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -
DMAC_OS_X_VERSION_MAX_ALLOWED=1020" in "Other C Flags".
Either way, I get compile errors *in the cocoa headers*. The first is:
/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h:184:
error: parse error before "animationEffect"
I can repro this with a fresh project. 10.3.7, XCode 1.5. The header
indeed looks in error to me.