Re: Subclassed NSArray, and using predicates and NSArrayController
Re: Subclassed NSArray, and using predicates and NSArrayController
- Subject: Re: Subclassed NSArray, and using predicates and NSArrayController
- From: Colin Cornaby <email@hidden>
- Date: Fri, 30 Mar 2007 14:22:05 -0700
Yeah, I figured it out, it was something really dumb. I set both the
controller key and model path to filterPredicate. I had bound my
table view to the arranged objects, but my predicate wasn't bound
correctly.
On Mar 30, 2007, at 2:04 PM, Romain wrote:
I'm trying to put together a test program, but am having some
issues getting the predicate that is bound to the
NSArrayController to even work with my NSArray subclass (so far it
doesn't seem to be filtering at all), so I thought I'd ask the
list for input.
If it's not filtering your array, it's because the filterPredicate
of a NSArrayController filters it's arrangedObjects, not the bound
object.
_______________________________________________
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:
40mac.com
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