• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Availability Macros, errors in cocoa headers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Availability Macros, errors in cocoa headers?
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: NSDecimalSeparator localization II
  • Next by Date: Re: NSDecimalSeparator localization II
  • Previous by thread: NSTextFieldCell: get number of wrapped lines?
  • Next by thread: Re: Availability Macros, errors in cocoa headers?
  • Index(es):
    • Date
    • Thread