Re: Predicate in IB
Re: Predicate in IB
- Subject: Re: Predicate in IB
- From: Micha Fuhrmann <email@hidden>
- Date: Fri, 27 Apr 2007 16:37:36 +0200
Hi Romain!
Thanks for responding!
It was indeed in the double declaration.
Do I feel silly: Yes
Thanks again
Micha
On 27 avr. 07, at 15:13, Romain wrote:
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 ?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden