Howdy, I'm looking around trying to find a definite feature set for
Objective-C 2.0 that will be shipped with 10.5, and I'm wondering if
this will include something I quite enjoy from C# and Java,
autoboxing. I can't even begin to say how often I've mistakenly used
TRUE/FALSE when changing a value of Boolean type in an
NSManagedObject, or an int value, instead of creating an NSNumber
([NSNumber numberWithInt]) and then at some point or another calling
[NSNumber intValue] to take the primitive type (whether it be BOOL,
or int) out of the NSManagedObject at some point.
While I'm certain I could define a BOX() and UNBOX() macro to handle
this for me, it's a far more elegant solution IMHO to handle boxing
on a language level. That said, I'm not sure if this is particularly
feasible given how objects are managed in the ObjC runtime versus
Just curious, I'm a typical programmer, in that I'm lazy, but there's
so many places (Core Data, Web Services, etc) that take "boolean"
values or "integer" values, but they don't jive well with BOOL, or
int values like the rest of the 'world'.
-----END PGP SIGNATURE-----
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden