title: Cannot find protocol declaration for 'MyObjectViewDelegate' when it is CLEARLY there ?1
body: <p>I have a class like this..</p>
  
  <pre><code>#import "MyObjectAddView.h"
  #import "MyAppDelegate.h"
  
  #define myAppDelegate (MyAppDelegate *) [[UIApplication sharedApplication] delegate]
  
  @class MyObjectAddView;
  
  @interface AccountViewController : UIViewController &lt;UIScrollViewDelegate, MyObjectAddViewDelegate, UIImagePickerControllerDelegate&gt; {
  
      MyObjectAddView *myAddView;
      .....
  }
  
  @property (nonatomic, retain) IBOutlet MyObjectAddView *myAddView;
  
  - (id) initWithSettings:(SettingsObject *)settings;
  
  @end
  </code></pre>
  
  <p>WHY is it suddenly telling me that it <strong>Cannot find protocol declaration for 'MyObjectAddViewDelegate'</strong> when I'm clearly importing and including the @class for where the protocol is defined? Here how <em>MyObjectAddView</em> setup:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import "MyAppDelegate.h"
  
  #define myAppDelegate (MyAppDelegate *) [[UIApplication sharedApplication] delegate]
  
  @protocol MyObjectAddViewDelegate;
  
  @interface MyObjectAddView : UIView &lt;UITextFieldDelegate&gt; {
  
  @private
      id &lt;MyObjectAddViewDelegate&gt; delegate;
      ....    
  @public
      .....
  }
  
  @property(nonatomic, assign) id &lt;MyObjectAddViewDelegate&gt; delegate;
  .....
  
  @end
  
  @protocol MyObjectAddViewDelegate &lt;NSObject&gt;
  // expense == nil on cancel
  - (void)myObjectAddViewDidFinish:(MyObjectAddView *)addView;
  
  @end
  </code></pre>
  
  <p>Everything seems perfectly setup and I don't see any circular imports ?! Any suggestions why it might not be seeing the protocol definition in MyObjectAddView?</p>
  
  <p>Thanks.</p>