I have an application using Core Data and bindings. I want to have an NSSearchField that can search through an NSArrayController bound to an NSTableView. The array controller contains Core Data objects that have a "name" field. I have setup the NSSearchField like this:
Bind To: the array controller
Controller Key: filterPredicate
Predicate Format: name contains[c] $value
This works. I want to extend it so that it can search to the fields of objects related to those in the array controller. Each object in the array controller has a to-many relationship to another type of object called "tag" which has a field called "name". I tried the following:
Bind To: the array controller
Controller Key: filterPredicate
Model Key Path: tags
Predicate Format: name contains[c] $value
This however does not work. Nothing happens in the NSTableView when text is input into the NSSearchField. What is wrong with it?