• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subclassed NSArray, and using predicates and NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Subclassed NSArray, and using predicates and NSArrayController (From: Romain <email@hidden>)

  • Prev by Date: Re: Fullscreen Window
  • Next by Date: Missing .pbxproj file?
  • Previous by thread: Re: Subclassed NSArray, and using predicates and NSArrayController
  • Next by thread: Report writing in Cocoa
  • Index(es):
    • Date
    • Thread