title: Using #define to access App Delegate Object doesn't work
body: <p>I am using App Delegate object in different classes. I want access it in whole project. Am define this object in Prefix.pch file as</p>
  
  <pre><code>#define Appdelegate (AppDelegate *)[[UIApplication sharedApplication] delegate]
  </code></pre>
  
  <p>but problem is that Appdelegate variable does not access App delegate variable.
  it Shows error.</p>
  
  <p>but if am use this code works fine</p>
  
  <pre><code>AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
  appDelegate.variablename;
  </code></pre>
  
  <p>Am I doing it correct or is there a way of doing what I do?</p>
  
  <p>thanks in Advance. </p>