I try count number in (values8 for example) 1 of 100 attributes of Event
And always got that count all number in all property of Event!
NSFetchRequest *fetchRequests = [[NSFetchRequest alloc] init];
NSEntityDescription *entit = [NSEntityDescription entityForName:str inManagedObjectContext:app.managedObjectContext];
NSDictionary *entityProperties = [entit propertiesByName];
[fetchRequests setReturnsDistinctResults:YES];
[fetchRequests setEntity:entit] ;
[fetchRequests setPropertiesToFetch :[NSArray arrayWithObject:[entityProperties objectForKey:value]]];
NSError *error;
NSArray *fetchedObject = [app.managedObjectContext executeFetchRequest:fetchRequests error:&error];
NSManagedObject *fetched ;
NSManagedObject *fetch ;
printf("\n%d", [fetchedObject count]);