Skip navigation.
 
mlRe: Predicate in IB
FROM : Romain
DATE : Fri Apr 27 15:13:28 2007

Hi there,

I can't get the predicate working in IB. The predicate in the Class is 
working fine since I'm creating an filtered test array within the 
class, but in IB it doesn't do as expected. I've done a tiny project 
covering the issue, I would be grateful if someone could take a look.

[...]

Micha


This is because you are binding your NSArrayController to "predicate". 
Your bound class must be KVC compliant with "predicate": either with 
an initialized instance variable called "predicate", or with an 
accessor -(NSPredicate*)predicate returning the needed value.

Check your code: predicate is declared twice as global and local. Did 
you try to compile this ?

Related mailsAuthorDate
mlPredicate in IB Micha Fuhrmann Apr 27, 12:50
mlRe: Predicate in IB Romain Apr 27, 15:13
mlRe: Predicate in IB Micha Fuhrmann Apr 27, 16:37