title: Passing data in an array from one class to another
body: <p>hoping for advice on something.</p>
  
  <p>I have a Levels Engine class that creates an NSMutable Array called levelsArray.</p>
  
  <p>I am passing the data to a Levels View Controller which is working just fine.</p>
  
  <p>I also have a Particle Emitter class to which I am hoping to pass the level data.</p>
  
  <p>However I am constantly being told that the count level of the array is 0 when I pass it to the Particle Emitter class.</p>
  
  <p>The array has been setup properly:</p>
  
  <pre><code>    **LevelsEngine.h**  
      @interface
      LevelsEngine : NSObject {   
      NSMutableArray *levelsArray;         }
  
      @property (retain) NSMutableArray
      *levelsArray;  
  
  
  
  
      **LevelsEngine.m**  
      @synthesize levelsArray;  
      LevelsArray =[NSMutableArray array];
  
  
      **Code used in ParticleEmitter.m**   
      newlevelsArray = [NSMutableArray array];  
      newlevelsArray=view.levelsArray;
  </code></pre>
  
  <p>Am I right in thinking I am having this error because I am trying to pass the array data from one NSObject to another and not to a view controller?If so how can I pass the data?</p>