• 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
Re: QTMovieApertureModeClean is unavailable warning in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTMovieApertureModeClean is unavailable warning in Leopard


  • Subject: Re: QTMovieApertureModeClean is unavailable warning in Leopard
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 8 Nov 2007 21:46:56 -0800


On Nov 8, 2007, at 9:35 PM, Martin Redington wrote:

On Tiger, this code compiles without error.


On Leopard, the same project (still targeting 10.4) generates


QTMovieApertureModeClean is unavailable (declared at

/Developer/SDKs/MacOSX10.4u.sdk/S/L/F/QTKit.framework/Headers/QTMovie.h:120)


and similarly for the other symbols.


Looking in the header, QTMovieApertureModeClean is declared as


QTKIT_EXTERN NSString

*QTMovieApertureModeClean AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;


so this is presumably as intended.


The symbols are all in iPhone movie export code, which is closely

modelled on the pre-Leopard Apple sample code, so I'm guessing these

were Leopard symbols, that bled back into Tiger to support the iPhone

movie export.


What I'm puzzled by is ...


How come Xcode 2.4.1 on Tiger wasn't warning me about this? I should

have all warnings on. Is this a new warning in Xcode 3.0?


Because for Leopard we re-mastered the 10.4u SDK with all the changes that shipped in 10.4.3 through 10.4.10, including the QuickTime updates applied therein.  The QuickTime team had common headers between Tiger and Leopard which use this #ifdef to distinguish, which is not exactly common in the Mac OS X API but not unacceptable.

Is there any easy way to suppress these warnings for these particular

symbols only?


Yes, if you have source that takes advantage of Leopard, you need to #if it when MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 so that only Leopard-targeted code tries to use Leopard-available APIs.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: QTMovieApertureModeClean is unavailable warning in Leopard
      • From: "Martin Redington" <email@hidden>
References: 
 >QTMovieApertureModeClean is unavailable warning in Leopard (From: "Martin Redington" <email@hidden>)

  • Prev by Date: QTMovieApertureModeClean is unavailable warning in Leopard
  • Next by Date: Re: QTMovieApertureModeClean is unavailable warning in Leopard
  • Previous by thread: QTMovieApertureModeClean is unavailable warning in Leopard
  • Next by thread: Re: QTMovieApertureModeClean is unavailable warning in Leopard
  • Index(es):
    • Date
    • Thread