Predicate Binding Question (2 tableviews, checkbox filtering)
Predicate Binding Question (2 tableviews, checkbox filtering)
- Subject: Predicate Binding Question (2 tableviews, checkbox filtering)
- From: Thilo Ettelt <email@hidden>
- Date: Fri, 10 Mar 2006 11:55:29 +0100
Hello,
I've faced another problem. I have two tableviews, one with a list of
items with checkboxes, one with a regular list. Now I want the
regular list only to display only the items which belong to the items
checked in the other tableview. how would the filterPredicate for my
arraycontroller look like?
I've got two custom classes: Account and Entry. The Entry one points
to an account object through "account", the account object has a bool
"isSelected". My arraycontroller guards a mutablearray featuring all
the entry accounts. When I try either -setFilterPredicate:
[NSPredicate predicateWithFormat:@"arrangedObjects.account.isSelected
== YES"] it will display an array in the first row of the entry
tableview seemingly with the arrangedobjects for each key (per
tablecolumn) or -setFilterPredicate:[NSPredicate
predicateWithFormat:@"account.isSelected == YES"]-- so what is wrong
with that and what should the different in the predicate?
Thx in advance,
Thilo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden