title: Strange error regarding instance variables & superclass
body: <p>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, &amp; 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 -</p>
  
  <pre><code>@interface mySuperClass : UIViewController {
  
  BOOL myVar;
  
  }
  </code></pre>
  
  <p>Then -</p>
  
  <pre><code>@interface mySubClass : mySuperClass {
  
  }
  
  @implementation mySubClass {
  
  -(void)someMethod {
  
      myVar = YES; // error here
  
  }
  
  @end
  </code></pre>
  
  <p>Any help much appreciated - if you need more info, let me know! Thanks.</p>