ObjC should support NSNumber constants
||Date Originated:||28-Nov-2008 04:13 AM|
||Product Version:||GCC 4.2|
ObjC currently supports NSString constants, with the syntax
@"This is an NSString"
however it doesn't support NSNumber constants, which leads to an awful lot of code like
[NSNumber numberWithInt:43], @"MyCount",
[NSNumber numberWithBool:YES], @"MyBool",
which is somewhat tedious to type.
It'd be helpful if ObjC could also support
which would turn the example above into
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!