Hi
I've defined a new type with this code
typedef enum result
{
error,
error1,
erorr2,
}result;
After that I want to implement a method that takes a "result" as parameter
- (void) setError:(result)errorNumber
It seems that it is not allowed and give me an compiler error.
Is not possible to use user defined type as method parameters?!?