If I place a typedef enum{kOne,kTwo}whatever;
in a .h
above the @interface
, I know I can use it by method implementations in the .m
. That is, I can use kOne
and kTwo
freely.
Now, I know I can make an @property
of whatever
thereby exposing the chosen kValue of whatever
to other classes, if desired.
But what if I want to expose the enum guts of whatever
, so I can access kOne
and kTwo
from other classes? That is, I want to know how many are included in whatever
and access those constants too. For example, I want another class to know that kOne
is 0, kTwo
is 1, etc.
Is there a way to do this?