Re: Predicate Binding Question (2 tableviews, checkbox filtering)
Re: Predicate Binding Question (2 tableviews, checkbox filtering)
- Subject: Re: Predicate Binding Question (2 tableviews, checkbox filtering)
- From: Thilo Ettelt <email@hidden>
- Date: Mon, 13 Mar 2006 15:55:54 +0100
Maybe I should try it again.
I'm trying to filter a tableview a according to checkboxes within
another tableview b. These checkboxes manipulate account.isSelected
from my object listed in tableview b. tableview a and b are fed by
different arraycontrollers, i want controller b to filter like this: -
setFilterPredicate:[NSPredicate
predicateWithFormat:@"arrangedObjects.account.isSelected == YES"]
but that won't work. why? does the arraycontroller b notice when an
account object within an object changes? is the predicate correct?
Thx in advance,
Thilo
Am 10.03.2006 um 11:55 schrieb Thilo Ettelt:
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
_______________________________________________
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