On 19 Aug, 2012, at 12:45 PM, Jens Alfke < email@hidden> wrote: On Aug 18, 2012, at 9:13 PM, Roland King < email@hidden> wrote: @YES and @NO (as long as you are using a sufficiently recent version of Xcode and operating system, eg 4.4 for OSX 10.8)
Wait, these require 10.8? I thought the literal syntax was purely compile-time syntactic sugar and didn't impose a runtime OS requirement. Or do you just mean compiling against the 10.8 SDK?
The compatibility matrix is here, it's a bit subtle
@12345 is in Xcode 4.4, that is just syntactic sugar which the compiler, clang 3.1++ deals with. @YES and @NO however required a header change (to use those __objc_yes and __objc_no values), and that only showed up in 10.8 headers, but as long as you have that SDK, you can target something less than 10.8 and it will be fine. Xcode 4.4 building for iOS however still doesn't have them because the 5.1 headers don't have them.
If you are an iOS dev program member there's an updated version of that document here
I will personally be happy when this years release cycle is done for ML and iOS as keeping track of what toolchain to use for what has been confusing.
|