Reflection for Enumerations in Objective-C

Arkadiusz Holko:

“A macro and a set of functions introducing reflection for enumerations in Objective-C.”

With a simple code change to NS_ENUM values, you can get string representations of enumerators as well as access minimum or maximum values. The necessary type casting is handled for you.

Reflection for enumerations