How to create an enumeration containing NSNumber? I have coredata persistence in my application, the object has a status property declared as Integer 16 in coredata, which means it's NSNumber
I would like to declare my listing to contain an NSNumber, not an int, so I can use them without writing this terrible thing.
enum { ERROR, INCOMPLETE, OK } EventStatus; [myObjectOnCoredata setStatus: [[NSNumber alloc] initWithInt:INCOMPLETE]];
and just:
[muObjectOnCoredata setStatus: INCOMPLETE]
I think this is possible because I can declare the listing as NSInteger, but it is still not good for me.
thanks for any help
Zerho source share