Use NSPredicate to retrieve information in core data from relationship
Hello i have this Core data:

![enter image description here][1]


  [1]: http://i.stack.imgur.com/xDKKE.png

then i do this:
   
    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
    NSEntityDescription *entity = [NSEntityDescription 
                               entityForName:@"MyDate"  inManagedObjectContext:managedObjectContext];
    [fetchRequest setEntity:entity];


now i want use the NSPredicate to take only the MyDate with the Task for the taskes relationship that have isView = NO and the taskDate <= today, and that the count of all Task for each MyDate is > 0...there is a way?


Use NSPredicate to retrieve information in core data from relationship
===

Hello i have this Core data:

![enter image description here][1]


  [1]: http://i.stack.imgur.com/xDKKE.png

then i do this:
   
    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
    NSEntityDescription *entity = [NSEntityDescription 
                               entityForName:@"MyDate"  inManagedObjectContext:managedObjectContext];
    [fetchRequest setEntity:entity];


now i want use the NSPredicate to take only the MyDate with the Task for the taskes relationship that have isView = NO and the taskDate <= today, and that the count of all Task for each MyDate is > 0...there is a way?

