title: Copy Array elements into another class array
body: <p>I have an NSMutabaleArray with few contents, and want to copy the contents to another array in another class, the code:</p>
  
  <p>sandboxcontroller.h:</p>
  
  <pre><code>@interface SandboxViewController : UIViewController
  {
  
  NSMutableArray * arrayOfDesc;
  }
  
  @property (nonatomic, retain) NSMutableArray * arrayOfDesc;
  </code></pre>
  
  <p>SandboxContoller.m</p>
  
  <pre><code>@synthesize arrayOfDesc;
  
  [arrayOfDesc addObject:[[CLLocation alloc] initWithLatitude:location.coordinate.latitude longitude:location.coordinate.longitude]];
  </code></pre>
  
  <p>the class in with i want to copy:
  NVMapViewController.h</p>
  
  <pre><code>@interface NVMapViewController : UIViewController &lt;MKMapViewDelegate&gt; {
  MKMapView *_mapView;
  SandboxViewController * sandboxViewController;
  NSMutableArray * points;
  }
  
  @property (nonatomic, retain) SandboxViewController *sandboxViewController;
  </code></pre>
  
  <p>NVMapViewController.m</p>
  
  <pre><code>points = [[NSMutableArray alloc] initWithArray:sandboxViewController.arrayOfDesc] ;
  </code></pre>
  
  <p>When i log the points array, it gives me null. Where is there problem, can anyone suggest me, thanks.</p>
  
  <p>And im not using ARC.</p>