Forward declare structs in Objective C
问题 I'm writing an iOS app in which I have a model class that is going to initialize itself with an XMLElement I give to it. I'm using TBXML for the XML part. The header for the model class looks like this: @interface CatalogItem : NSManagedObject @property (nonatomic, retain) NSString * name; @property (nonatomic, retain) NSManagedObject *group; -(id)initWithXMLElement:(TBXMLElement*)element; @end Now instead of including the header in which TBXMLElement is defined, I'd like to forward declare