title: Why doesen't it work to write this NSMutableArray to a plist?
body: <p>edited.</p>
  
  <p>Hey, I am trying to write an NSMutableArray to a plist.
  The compiler does not show any errors, but it does not write to the plist anyway.
  I have tried this on a real device too, not just the Simulator.</p>
  
  <p>Basically, what this code does, is that when you click the <code>accessoryView</code> of a <code>UITableViewCell</code>, it gets the <code>indexPath</code> pressed, edits an <code>NSMutableArray</code> and tries to write that <code>NSMutableArray</code> to a plist. It then reloads the arrays mentioned (from multiple plists) and reloads the data in a <code>UITableView</code> from the arrays.</p>
  
  <p>Code:</p>
  
  <pre><code>NSIndexPath *indexPath = [table indexPathForRowAtPoint:[[[event touchesForView:sender] anyObject] locationInView:table]];
  
  [arrayFav removeObjectAtIndex:[arrayFav indexOfObject:[NSNumber numberWithInt:[[arraySub objectAtIndex:indexPath.row] intValue]]]];
  
  NSString *rootPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
  NSString *plistPath = [rootPath stringByAppendingPathComponent:@"arrayFav.plist"];
  NSLog(@"%@ - %@", rootPath, plistPath); 
  
  
  [arrayFav writeToFile:plistPath atomically:YES];    
  
  // Reloads data into the arrays
  [self loadDataFromPlists];
  
  // Reloads data in tableView from arrays
  [tableFarts reloadData];
  </code></pre>
  
  <p>CFShow() on the array <em>after</em> removing one of them shows this:</p>
  
  <pre><code>&lt;CFArray 0x6262110 [0x2c810a0]&gt;{type = mutable-small, count = 4, values = (
      0 : &lt;CFNumber 0x6502e10 [0x2c810a0]&gt;{value = +3, type = kCFNumberSInt32Type}
      1 : &lt;CFNumber 0x6239de0 [0x2c810a0]&gt;{value = +8, type = kCFNumberSInt32Type}
      2 : &lt;CFNumber 0x6239dc0 [0x2c810a0]&gt;{value = +10, type = kCFNumberSInt32Type}
      3 : &lt;CFNumber 0x6261420 [0x2c810a0]&gt;{value = +40, type = kCFNumberSInt64Type}
  </code></pre>
  
  <p>DEBUG-INFO: <code>writeToPlist</code> shows YES, I have tried to release all the arrays before filling them up again, setting them to <code>nil</code>, set <code>atomically</code> to NO.</p>