title: Trying to Access Application Delegate Variables / Properties
body: <p>I am using a variable/propery of my application delegate as a global.  (I don't want to deal with a singleton class.)</p>
  
  <p>I am trying to write a #define statement in my Application Delegate class.  If I type:</p>
  
  <pre><code>  [UIApplication sharedApplication]
  </code></pre>
  
  <p>in my app delegate class, code hinting does not recognize sharedApplication.  But if I type the same thing in a viewController class, "sharedApplication" pops right up.</p>
  
  <p>In order to define a NSMutableDictionary in my applicationDelegate.h (or .m?), I write:</p>
  
  <pre><code>#define MyDictionary [[[UIApplication sharedApplication] delegate] stateDictionary]
  </code></pre>
  
  <p>Then if I try to use it in another class:</p>
  
  <pre><code>[[MyDictionary objectForKey:@"California"] largestCity];
  </code></pre>
  
  <p>I get an error that MyDictionary must be declared first.  I am really confused about a lot of concepts here.</p>