In Tigger, NSSearchField can now automagically filter an array via IB magic.In Interface Builder, drag over the NSSearchField, and bind the
predicate
like this:If you're wanting to be able to filter on multiple attributes, make additional predicate bindings. Doing the CoreData option-drag of an entity into IB is really handy - take a peek at how it configures the search field for filtering multiple columns.
- Bind To: your array controller
- Controller Key: filterPredicate
- Predicate Format:
what contains[c] $value
(assuming the attribute you're filtering is calledwhat
)