Multiple NSPredicates to filter an NSArrayController
Multiple NSPredicates to filter an NSArrayController
- Subject: Multiple NSPredicates to filter an NSArrayController
- From: Chris Blackburn <email@hidden>
- Date: Sun, 12 Aug 2007 22:42:06 +0100
Hey all,
I have an NSArrayController that is hooked up to an NSTableView with
bindings including having its filterPredicate bound to an
NSSearchField. The trouble is that I want the ArrayController to only
select a subset of the data, then perform a search on it, hence my
predicate looks something like this:-
(identifier contains[c] $value) and (people_id != nil)
This works fine when something is entered into the Search Field but
when nothing is entered then no predicate is sent at all. How can I
specify the predicate for searching and the predicate for data
selection?
Thanks
Chris.
_______________________________________________
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