NSSearchField Question

Dear Friends,

I have this question:

In an ArrayController that contains people’s names and it’s addresses and other info, including the person’s social security number, I would like to have an NSSearch field that is capable to search by the person’s name or the social security number.

I am playing with “filterPredicate”, I enabled a “predicate format” that works for finding the person’s name, but if I add a second predicate format for the person’s social security number, it does not work.

Question:

What is the best approach to enable searching on two predicate formats using the same search field?

Thanks,

Bernardo

It should work. See the example on page 47 of my book.

Thanks Shane.

I just have to use an “or” in the same predicate.

It worked.