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: Subclassed NSArray, and using predicates and NSArrayController



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

This email sent to email@hidden
References: 
 >Re: Subclassed NSArray, and using predicates and NSArrayController (From: Romain <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.