Skip navigation.
 
mlHow is this possible?
FROM : Don Arnel
DATE : Sun Apr 20 17:25:02 2008

I have two different class objects that need to know about each other 
(see below). But if I include the header from one class inside the 
header of the other class the compiler complains. Is this even possible?

ClassOne.h:
----------------

#import "ClassTwo.h"

@interface ClassOne : NSObject {
   
   ClassTwo *objectTwo;
}

@end
----------------


ClassTwo.h:
----------------

#import "ClassOne.h"

@interface ClassTwo : NSObject {
   
   ClassOne *objectOne;
}

@end
----------------

Related mailsAuthorDate
mlHow is this possible? Don Arnel Apr 20, 17:25
mlRe: How is this possible? Jean-Daniel Dupas Apr 20, 17:32
mlRe: How is this possible? Jonathan del Strot… Apr 20, 17:32