Hey,
I have two classes, ClassA and ClassB. In the ClassB header I have:
In the ClassA header I have a method prototype:
This set up only works if I include the ClassB header file in the ClassA header file - which I don't want to do (since it's against convention). I want the ClassB header to be included in the ClassA .m file. Do I need to do a @class equivalent for the type?
Cheers
I have two classes, ClassA and ClassB. In the ClassB header I have:
Code:
typedef enum_AType
{
ATypeA,
ATypeB,
ATypeC
} AType;
In the ClassA header I have a method prototype:
Code:
-( AType )someMethod;
This set up only works if I include the ClassB header file in the ClassA header file - which I don't want to do (since it's against convention). I want the ClassB header to be included in the ClassA .m file. Do I need to do a @class equivalent for the type?
Cheers