I was just experimenting with the new Objective-C syntax introduced as part of Xcode 4.4.
Dictionaries, integers and arrays work fine, but I had a problem with the job BOOL. eg:.
NSDictionary *myDict = @{
@"foo": @"bar",
@"test": @YES
};
gives me "Unexpected type name" BOOL ": expected expression" in a boolean string.
However @(YES), @1, @trueeverything works fine.
This article: http://clang.llvm.org/docs/ObjectiveCLiterals.html suggests it @YESshould work.
I also tried this on my line: NSNumber *myNum = @YES;and get the same error.
error?!