Best Application Delegate Practice
<p>I have been making a few apps here and there, and I know my way around. What has always confused me is accessing global attributes, and where the best place to set them are. I have a few questions about accessing things and how to access them.</p>

<p>Do you have to include your application delegates header file into any other other file you want to access it in? Say I have a view controller, that I would like to use, do I need to include the .h inside my view controller's .h? Or can I set the:</p>

<pre><code>@class AppDelegate;
</code></pre>

<p>Can you only access the delegate by typing out:</p>

<pre><code>[UIApplication sharedApplication].delegate
</code></pre>

<p>EACH and every time? Is that something I just have to get used to? Or could I set the following in my implementation in each .h:</p>

<pre><code>AppDelegate *delegate;
</code></pre>

<p>And inside the <code>init</code> function, put the singleton instance to that variable?</p>

<p>Sorry if this was off structure, but I think it's a logical question people have a problem encountering and solving.</p>
