Hi,
it is possible and rather easy to create a NSPredicate from a string that uses the contains operator, like this:
[NSPredicate predicateWithFormat:@"name contains[cd] \"Hello!\""];
I would like to create this predicate programmatically, as it can be done for comparisons with the NSComparisonPredicate. Any ideas about this?
My motivation to do it programmatically is that it's less error prone because the search strings have user input included and are not predefined.
Heinrich