• 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: filterPredicate not effecting NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filterPredicate not effecting NSArrayController


  • Subject: Re: filterPredicate not effecting NSArrayController
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 21 Nov 2012 20:42:56 -0600

On Nov 21, 2012, at 6:27 PM, Erik Stainsby wrote:

>    [self.peopleArrayController setFilterPredicate: nil];

>        [self.peopleArrayController setFilterPredicate:p];

>        [self.peopleArrayController setFilterPredicate:cp];

>    [self.peopleArrayController rearrangeObjects];
>    [self.tableView reloadData];

> The tableView is bound to an arrayController object in XIB, which is in turn a ref to this (weak) peopleArrayController in the windowController.
>
> The predicates (whichever is triggered) print to log just as expected.  But the contents of the tableView are not reduced.
> The table displays the entire contents of the peopleArrayController.arrangedObjects unfiltered.
>
> Is there another step required?

Have you verified that self.peopleArrayController is not nil?

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >filterPredicate not effecting NSArrayController (From: Erik Stainsby <email@hidden>)

  • Prev by Date: Re: nssound question
  • Next by Date: Re: NSArrayController KVO question...
  • Previous by thread: filterPredicate not effecting NSArrayController
  • Next by thread: Re: filterPredicate not effecting NSArrayController
  • Index(es):
    • Date
    • Thread