hi, xcode is giving me some issues with a class. the code seem apparently good, my only doubt is on importing.
I have a classA which import a classB n classB import classA.
here's the code
Actor.h
Director.h
Film.h
sometimes i just rewrite the code, as it is, and the warning disappear. then randomly it appear again
I have a classA which import a classB n classB import classA.
here's the code
Actor.h
Code:
#import "Employee.h"
#import "Film.h"
@interface Actor : Employee {
int oscar;
Film *movie;
}
-(void)setOscar:(int)valueOscar;
-(int)getOscar;
-(void)print;
@end
Director.h
Code:
#import "Employee.h"
#import "Film.h"
@interface Director : Employee {
Film *movie; //i get error here "unknow file name Film"
int oscar;
BOOL isPerc;
}
-(void)setOscar:(int)valueOscar;
-(int)getOScar;
@end
Film.h
Code:
@interface Film : NSObject{
NSString *nameMovie;
long double boxOffice;
int year;
Actor *actorName;
Director *dirName; //i get error here "unknow file name Director"
}
@end
sometimes i just rewrite the code, as it is, and the warning disappear. then randomly it appear again