• 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
what's the right define to use for 10.5/10.6 differentiation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

what's the right define to use for 10.5/10.6 differentiation


  • Subject: what's the right define to use for 10.5/10.6 differentiation
  • From: Roland King <email@hidden>
  • Date: Wed, 30 Dec 2009 21:40:38 +0800

I have a library I'm building for iPhone and OSX (and thanks for the tips about building different targets for different architectures, I've had much more success since I posted a couple of weeks ago about that). 

10.6 is much more formal about protocols so for instance I need my objects to implement NSNetServiceDelegate for that build, but those protocols aren't in 10.5 or the iPhone OS, so I have small compatibility header which defines the protocols for iPhone (and also deals with a couple of other differences). 

I have this in the header file to pick out when I'm building for iPhone

#if TARGET_IPHONE_SIMULATOR | TARGET_OS_IPHONE

but I can't figure out what to check for to disambiguate between 10.5 and 10.6. I have wandered around the documentation, tried a few likely searches, and looked in some header files to see if I can find something but I've not found what I'm looking for. If there is a documentation link I've missed please feel free to point me to it. 
 _______________________________________________
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: what's the right define to use for 10.5/10.6 differentiation
      • From: Quincey Morris <email@hidden>
  • Prev by Date: add system-wide custom build rules?
  • Next by Date: Re: what's the right define to use for 10.5/10.6 differentiation
  • Previous by thread: Re: add system-wide custom build rules?
  • Next by thread: Re: what's the right define to use for 10.5/10.6 differentiation
  • Index(es):
    • Date
    • Thread