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
----------------
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 mails | Author | Date |
|---|---|---|
| Don Arnel | Apr 20, 17:25 | |
| Jean-Daniel Dupas | Apr 20, 17:32 | |
| Jonathan del Strot… | Apr 20, 17:32 |






Cocoa mail archive

