Is it possible to loop through enum values in Objective-C?
If the above does not work for you, because you're using C++, the following should:
enum Foo { One, Two, Three, Last }; for ( int fooInt = One; fooInt != Last; fooInt++ ) { Foo foo = static_cast<Foo>(fooInt); // ... }