• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Predicate Binding Question (2 tableviews, checkbox filtering)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Predicate Binding Question (2 tableviews, checkbox filtering)
      • From: Thilo Ettelt <email@hidden>
  • Prev by Date: Re: Custom Cell with Image & Text + OutlineView + Bindings Problem
  • Next by Date: IBoutlets out of scope in c functions?
  • Previous by thread: Re: NSBitmapImageContext from Word *
  • Next by thread: Re: Predicate Binding Question (2 tableviews, checkbox filtering)
  • Index(es):
    • Date
    • Thread