Is there some way to co-define two classes which reference each other?
The compiler barfs (error: parse error before 'Bar') at the following:
#import <Cocoa/Cocoa.h>
@class Bar;
@interface Foo : NSObject {
Bar* bar;
}
@end
@class Foo;
@interface Bar : NSObject {
Foo* foo;
}
@end
Obviously, you only need the @class on the one that comes before the
declaration of the other...