I have this type of Enum with TypeDef:
typedef enum {
ControlDisplayOptionNone = 0,
ControlDisplayOptionOne = 100
} ControlDisplayOption;
And I'd like to be able to put them in an array like this:
- (NSArray *)displayOptions {
return @[@ControlDisplayOptionNone];
}
but that won't work, and even this won't work:
NSNumber *test = @ControlDisplayOptionNone;
the only option that will work is traditional:
return @[[NSNumber numberWithInt:ControlDisplayOptionNone]];
Is there any way to use autoboxing for this?