title: Write filtered NSArray back to plist
body: <p>I load plist to NSArry, filter that array to capture the data I need, and then present the data to a UITableView. That works great. </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I'm working with the array of dictionaries. Plist is filled with array of dictionaries.</p>
  
  <p>This is what I do:</p>
  
  <pre><code>NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"/data.plist"];
  //array is filled with dictionaries
  array = [NSMutableArray arrayWithContentsOfFile:filePath];
  
  //filter the array to catch appropriate data (there are maybe 10 objects):
  self.arrayFiltered = [NSMutableArray arrayWithCapacity:[array count]];
  NSDictionary *dict;
  for (dict in array)
      if ([[dict valueForKey:@"globalKey"] isEqualToNumber:[NSNumber numberWithInt:year]])
          [arrayFiltrirani addObject:dict];
  </code></pre>
  
  <p>Now I fill the tableView with the data from the arrayFiltered. Now I want to delete a row from the tableView and arrayFiltered. </p>
  
  <pre><code>[self.arrayFiltrirani removeObjectAtIndex:indexPath.row];
  </code></pre>
  
  <p>BUT!!! How do I update original array and save it to the plist?</p>