Re: filterPredicate not effecting NSArrayController
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