title: Encoding an NSMutableArray
body: <p>I have an object containing various NSString objects and variables which I us NSCoding to archive to a file on the disk and later unarchive.  So far everything has been working perfectly.</p>
  
  <p>Today, I wanted to add an NSMutableArray to the object and tried to encode using the:</p>
  
  <pre><code>[encoder encodeObject:myArray ForKey:@"myArray"];
  </code></pre>
  
  <p>and later decode it using:</p>
  
  <pre><code>[self setMyArray:[decoder decodeObjectForKey:@"myArray"]];
  </code></pre>
  
  <p>It doesn't appear to be working, and while I don't get any errors in the encoding or decoding itself, I do get an error if I try to modify the value of the array after decoding from the file.</p>
  
  <p>I'm sure I'm doing something completely wrong here, but not entirely certain what.  I'm thinking perhaps it may have something to do with it not properly allocing during the unarchive.</p>
  
  <p>Anything look blatantly obvious as the source of the problem?</p>