aboutsummaryrefslogtreecommitdiff
path: root/AddressBook/GTMABAddressBook.m
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2016-06-14 10:29:05 -0400
committerGravatar Thomas Van Lenten <thomasvl@google.com>2016-06-14 10:29:05 -0400
commit7b984f5a1c54dbe2dca310992c60e196337d9f5c (patch)
treee496d130ef74e8a0bef6c82ece68abd5754aab8a /AddressBook/GTMABAddressBook.m
parent03623a95a6be9adee2db1c195bb2cf991ac99464 (diff)
Improve the casing macros
Make GTM_STATIC_CAST(className, object) and GTM_DYNAMIC_CAST(className, object) return objects that are type-casted to className *, instead of id. This enables access to properties on the casted objects, e.g. GTM_STATIC_CAST(NSString, object).length which wouldn't work previously, since accessing .length on an id type (correctly) results in a compiler error.
Diffstat (limited to 'AddressBook/GTMABAddressBook.m')
0 files changed, 0 insertions, 0 deletions