title: What is the correct way to copy an object from an NSMutableArray
body: <p>so I want to copy an object from an <code>NSMutableArray</code>:</p>
  
  <pre><code>self.myObject = [self.myMutableArray objectAtIndex:self.currentIndex];
  </code></pre>
  
  <p>But when <code>currentIndex</code> changes, <code>myObject</code> changes to the object corresponding to the new index.</p>
  
  <p>What is the best way to approach this?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Here's more or less what I'm trying to achieve:</p>
  
  <pre><code>self.currentIndex = 0;
  
  self.myObject = [self.myMutableArray objectAtIndex:self.currentIndex];
  
  self.currentIndex = 1;
  
  //After here I want myObject to remain the same, but it doesn't
  </code></pre>