I've got some code where my classes inherit from a superclass, and everything has been working fine till now. I'm getting an error whenever I try to use any of the superclass variables, saying that they are undeclared (first use in this function). It's only happening in one of my subclasses, & it looks exactly the same as the others. I'm wondering if there's anything obvious which I should know about (being quite new to Objective-C). The basic code is like -
@interface mySuperClass : UIViewController {
BOOL myVar;
}
Then -
@interface mySubClass : mySuperClass {
}
@implementation mySubClass {
-(void)someMethod {
myVar = YES; // error here
}
@end
Any help much appreciated - if you need more info, let me know! Thanks.