Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Predicate in IB



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.