TooTallNate / NodObjC

The Node.js ⇆ Objective-C bridge

Home Page:http://tootallnate.github.io/NodObjC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for NS_ENUM values

cobarx opened this issue · comments

Is there any way to access enums generated with NS_ENUM? I tried all sorts of different syntactical combinations and wasn't able to find my enum values.

It would be great to have this as I have to create helper methods that to map string inputs to the enums I use internally in my Objective C library.

If you want to pass an enum to a method, you can also pass the enums raw value.

Example:
Instead of
-[UITextView setAutocapitalizationType:UITextAutocapitalizationTypeNone];
you could also call
-[UITextView setAutocapitalizationType:0];