Im digging for ways to enum objc object such as NSString, I remember there a new feature in a version of Xcode4+ which offering a new way to enum , but not clearly. Anyone know that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OK, I answered myself. Guess I make a mistake.
This is the new feature I mentioned above:
It’s just a new syntax for enum in Xcode 4.4, but I’m so foolish to think we can exchange “NSUInteger” to “NSString”.
So here is the way I found that works:
http://longweekendmobile.com/2010/12/01/not-so-nasty-enums-in-objective-c/
FYI. The original author of the second example code created a category for enum handling. Just the thing for adding to your very own NSArray class definition.