title: NSArrayController fetch vs filter predicate
body: <p>I'm working on a Mac app and am struggling to get a predicate filter to work.  Is there a difference in how you should use the fetch vs filter predicates for an NSArrayController?</p>
  
  <p>I'm using Core Data to store my records and they display perfectly in my table view.  When I use the fetch predicate it properly displays the records.  When I use the filter predicate it does not seem to do anything.  Just to be clear - I'm using one predicate at a time but wanted to show both in my code.</p>
  
  <pre><code>entryController = [[NSArrayController alloc] init];
  [entryController setManagedObjectContext:[self managedObjectContext]];
  [entryController setAutomaticallyPreparesContent:YES];
  [entryController setAutomaticallyRearrangesObjects:YES];
  [entryController setClearsFilterPredicateOnInsertion:NO];
  [entryController setEntityName:@"Entry"];
  
  // only displays entries where deleted is not 1
  [entryController setFetchPredicate:[NSPredicate predicateWithFormat:@"deleted != %@", [NSNumber numberWithInt:1]]];
  
  // shows all entries regardless of the deleted status
  [entryController setFilterPredicate:[NSPredicate predicateWithFormat:@"deleted != %@", [NSNumber numberWithInt:1]]];
  
  if ([entryController fetchWithRequest:nil merge:YES error:&amp;error] == NO) {
      DLog(@"Error fetching entries: %@", error.description);
  } else {
      DLog(@"Found %lu entries.", [[entryController arrangedObjects] count]);
  }
  </code></pre>