title: migrate cocoa touch project to cocoa
body: <p>I used the codes below to access the variable in the project</p>
  
  <pre><code>appDelegate =(AppDelegate *)[[UIApplication sharedApplication] delegate];
  UIApplication *app=[UIApplication sharedApplication];
  appDelegate.myInt=1;
  </code></pre>
  
  <p>It works.</p>
  
  <p>But when I try to migrate the project to Cocoa, I found there is no way to do the same functions as above.
  How can I use delegate concept to access the global variables (not use 'extern NSInteger myInt')</p>
  
  <p>Welcome any comment</p>
  
  <p>Thanks</p>
  
  <p>interdev</p>