You have a "loop" in your headers where a includes b includes a. You can break it using the @class directive, which "forward declares" a class.
in A.h:
@class B
in A.m:
#import "B.h"
in B.h:
@class A
in B.m:
#import "A.h"
With the @class directive you don't get any information about the methods or properties of the other object, but you do not need them to compile the header anyway. You usually do need that information when compiling the .m file, though, so the .m file gets the #import.
__________________

Free Games!
|