jamztang
10/30/2014 - 11:14 AM

A simple @keypath marco

A simple @keypath marco

// usage: @keypath(arg)
// like how you use @selector(arg)
// For a full implementation, checkout https://github.com/jspahrsummers/libextobjc

#define keypath(PATH) \
(((\
NSStringFromSelector(@selector(PATH))\
), # PATH))