Hi all,
in java an enum can be declared like this
enum MyEnum {
ONE("descr for one"),
TWO("descr for two");
private String descr;
MyEnum(String descr) {
this.descr=descr;
}
public String getDescr() {return this.descr;}
}
therefore we can always call myEnumInstance.getDescr() for getting enum description. It is possible of course to add several variable in constructor and create its corresponding accessor. Is there anything similiar in objective-c ?
thanks