Mailing Lists: Apple Mailing Lists

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

Availability Macros, errors in cocoa headers?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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.