Is it possible to include a [NSPredicate predicateWithBlock:] in a NSCompoundPredicate?

57 views Asked by At

I'm trying to make a big filter with a NSCompoundPredicate that includes a BlockPredicate but I get this error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Problem with subpredicate BLOCKPREDICATE(0x19189b60)'

Each predicate by separated run very well, I have tried to make a first filter with all my normal predicates in a NSCompoundPredicate and then filter the array with the BlockPredicate and it run.

But my question is: is it possible to combine both in a NSCompoundPredicate?

0

There are 0 answers