Re: Availability macros broken?
Re: Availability macros broken?
- Subject: Re: Availability macros broken?
- From: Chris Espinosa <email@hidden>
- Date: Wed, 29 Oct 2003 16:29:39 -0800
On Wednesday, October 29, 2003, at 02:00 PM, Jonathan Wight wrote:
If I add this line to my pch file in a (XCode/7B85) project:
#define MAC_OS_X_VERSION_MAX_ALLOWS MAC_OS_X_VERSION_10_2
I hope you mean "MAC_OS_X_VERSION_MAX_ALLOWED"
I get the following errors:
/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h:184:
error: parse error before "animationEffect"
/System/Library/Frameworks/AppKit.framework/Headers/
NSLayoutManager.h:68: error: cannot find protocol declaration for
`NSGlyphStorage'
/System/Library/Frameworks/AppKit.framework/Headers/
NSLayoutManager.h:74: error: parse error before "NSGlyphGenerator"
/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h:184:
error: `NSAnimationEffect' was not declared in this scope
/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h:184:
error: parse error before `,' token
/System/Library/Frameworks/AppKit.framework/Headers/
NSLayoutManager.h:68: error: cannot find protocol declaration for
`NSGlyphStorage'
/System/Library/Frameworks/AppKit.framework/Headers/
NSLayoutManager.h:74: error: parse error before `*' token
Have the availability macros died in favour of the new platform SDKs?
No -- the SDK mechanism uses and depends on AvailabilityMacros.h. When
you target an SDK you use its AvailabilityMacros.h file, which sets
MAC_OS_X_VERSION_MAX_ALLOWED by default.
But why are you setting MAX_ALLOWED and using the 10.3 headers? You can
set MIN_REQUIRED and use new headers, but it doesn't make much sense to
set MAX_ALLOWED (unless you really want compile-time errors when you
use 10.3 symbols). It's probably best to set the SDK to 10.2; that way
you get MAX_ALLOWED = 10.2, you get real 10.2 headers, and you link
against 10.2 libraries.
Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.