I’ve got two Cocoa Touch classes (objective-c). And both #import each other’s header.
Class A’s header defines an enum, which Class B’s header is trying to use. Class B fails to compile due to not recognizing the type.
I think this is a circular dependency issue, but I think @class won’t be too much help since the issue is with an enum.
What do you suggest?
Put the enum in it’s own header and forward declare the classes with @class where needed in each others headers so A don’t need to import B and B don’t need to import A but booth import the enum header.