Combining predicates from multiple NSSearchFields, using IB bindings only
Combining predicates from multiple NSSearchFields, using IB bindings only
- Subject: Combining predicates from multiple NSSearchFields, using IB bindings only
- From: "Juan Nunez-Iglesias" <email@hidden>
- Date: Wed, 25 Jul 2007 18:08:54 -0700
Hi all,
I'm a beginning Cocoa programmer. I'm building a small app that is
just a glorified browser for a particular tab-delimited file. So I
have an NSTableView which displays the contents of an
NSArrayController which controls an array of Foo objects, which are
lines from the file. A Foo object has a name, event, score1, score2
and score3. The name<-->event relationship is many-to-many so there
could be many lines with the same name but different events, each with
different score values.
Basically what I want to do is filter by name and scores
simultaneously, having an NSSearchField for each. I'm using predicate
bindings in Interface Builder for each search field, and each search
field works perfectly individually. However, when one search field is
in use the others are unresponsive. What I would like to do is to have
each search field add onto the predicates created by the others.
Is there any way to do this using IB, or will I have to handle
predicates programmatically?
Also, if the latter, is there any way to do this without subclassing
the NSArrayController?
Thanks,
Juan.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden