title: Strange behavior with compile error "expected specifier-qualifier list before 'CustomClass'"
body: <p>I have been having some trouble lately with using custom classes as types. As described in the title, I have been getting compile errors similar to the one below:</p>
  
  <pre><code>expected specifier-qualifier list before 'MyClass'
  </code></pre>
  
  <p>My code is usually something along the lines of this:</p>
  
  <pre><code>@interface MyCoolClass : NSObject {
      MyClass *myClassObject; // Error is on this line.
  }
  </code></pre>
  
  <p>I also occasionally use something like this:</p>
  
  <pre><code>@interface MyCoolClass : NSObject {
      IBOutlet MyClass *myClassObject; // Error again on this line
  }
  </code></pre>
  
  <p>Im not really sure if that is good to use but on occasion, I have done something like that so I could connect my objects together with Interface Builder so that one object could invoke a method on another object. </p>
  
  <p>I've been able to do this before successfully with other projects but when I tried to do it today, it gave me this error. Any ideas what could be causing it? As far as I can tell, I have done the same thing that I did in the other project here.</p>
  
  <p>It is also to my understanding that this error usually gets thrown if the type is not defined, but I am pretty sure that I have defined it.</p>