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))