title: It's possible create a custom delegate in AppDelegate?
body: <p>i want know if it's possible create a custom delegate in the AppDelegate class, like in this way for instance:</p>
  
  <pre><code>@protocol AppDelegateDelegate &lt;NSObject&gt;
  
  - (void)finishSync:(BOOL)success;
  
  @end
  
  @interface AppDelegate : UIResponder &lt;UIApplicationDelegate&gt; {
  
  @property (nonatomic, weak) id &lt;AppDelegateDelegate&gt; delegate;
  
  @end
  </code></pre>
  
  <p>it's possible create something like this? to notify the classes that are registered for this delegate?</p>
  
  <p><strong>EDIT</strong>
  How i can use the Delegate? for example if i do this:</p>
  
  <pre><code>#import "AppDelegate.h"
  
  @interface MasterViewController : UIViewController &lt;AppDelegateDelegate&gt;
  
  @end
  </code></pre>
  
  <p>.m</p>
  
  <pre><code>@implementation MasterViewController
  
  ...
  
  - (void)viewDidLoad {
    AppDelegate *appController = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    appController.customDelegate = self;
  
  }
  </code></pre>
  
  <p>in i stay only in that view works, but for example if i switch in SecondViewController that have the same code to implement the delegate, the delegate don't works anymore neither in the MasterViewController...what i wrong?</p>