title: Xcode : Accessing method instance from other class file
body: <p>I've reasonable successfully setup access to another method in the following way:</p>
  
  <p>SomeScript.m (the class I am trying to access)</p>
  
  <pre><code>-(void)amethod{....
  </code></pre>
  
  <p>codeA.h  (the class that is accessing amethod) within the {} has: </p>
  
  <pre><code>SomeScript* myScript;
  </code></pre>
  
  <p>codeA.m </p>
  
  <pre><code>myScript = [[SomeScript alloc] init];
  [myScript amethod];
  </code></pre>
  
  <p>What I want to do however is make it an instance variable of the app delegate but when I put the  SomeScript* myScript; and the myScript = [[SomeScript alloc] init]; in AppDelegate.h the codeA.m does not recognise it.</p>