Possible Duplicate:
NSFetchedResultsController with predicate ignores changes merged from different NSManagedObjectContext
I am using a NSFetchedResultsController to control the updating of a grid view I am using. I am setting up a compound predicate where there is a boolean property that I'm checking for NO and then ALSO checking to see if there are any of the relationship entity.
In a background thread, I use a separate MOC to save, and this works no problem. With the predicate only set to the selected part, my delegate methods get called. If I add the relationship part of the predicate, my delegate never gets called.
Is this a limitation of the NSFetchedResultsController? Can it not check children entities?
    NSSortDescriptor *sortDesc = [NSSortDescriptor sortDescriptorWithKey:@"order" ascending:YES];
    NSFetchRequest *req = [NSFetchRequest fetchRequestWithEntityName:@"Tab"];
    //Problematic line here.
    NSPredicate *pred = [NSPredicate predicateWithFormat:@"(selected == NO) && (modules.@count > 0)"];
    [req setPredicate:pred];
    [req setSortDescriptors:@[sortDesc]];
    NSFetchedResultsController *fc = [[NSFetchedResultsController alloc] initWithFetchRequest:req managedObjectContext:self.managedObjectContext sectionNameKeyPath:nil cacheName:nil];
    [fc setDelegate:self];