title: How to create copy of NSArray and change it without affection original NSArray?
body: <p>I need a copy of <code>NSArray</code> to store state of dates. I try to use <code>mytableCopy</code> which I understand makes copy which is independent of original object.</p>
  
  <p>When I make changes to <code>mutableCopy</code> I have changes also in the original array.</p>
  
  <p>Why?</p>
  
  <p>My code is:</p>
  
  <pre><code>_nsarr = [[NSArray alloc] initWithArray:inputArray];
  _nsMraa= [NSMutableArray alloc];
  _nsMraa = [_nsarr mutableCopy];
  </code></pre>
  
  <p>Note: both arrays are properties of my object. <code>inputArray</code> is input param which is not use after that.</p>
  
  <p>REMARK: one object is <code>NSArray</code>, other is <code>NSMutableArray</code></p>