Availability Macros, errors in cocoa headers?
Availability Macros, errors in cocoa headers?
- Subject: Availability Macros, errors in cocoa headers?
- From: "Sean McBride" <email@hidden>
- Date: Thu, 30 Dec 2004 18:38:25 -0500
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.
So are these macros useless or what?
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Mac Software Designer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden