i have an arraycontroller bound to the tableview. i need to return the number of checked checkoxes in the table. the arraycontroller is filled with nsmutabledictionaries. this is the code i have so far:
-(IBAction)getlist:(id)sender{
checkedchecks = 0;
for (NSManagedObject *a in imagescontroller.arrangedObjects)
{
////MISSING CODE GOES HERE
}
NSAlert *alert = [[NSAlert alloc] init] ;
[alert setMessageText:[NSString stringWithFormat:@"%ld",(long)checkedchecks ]];
[alert runModal];
}
now i would need to know how i can count all the values that are boolean and are set to yes.. thanks!