Predicates to filter one array controller based on content from the other
Predicates to filter one array controller based on content from the other
- Subject: Predicates to filter one array controller based on content from the other
- From: email@hidden
- Date: Sun, 23 Oct 2005 14:03:35 -0700
Hi Everyone,
I'm working on a way to filter one array controller to NOT show whats
contained in the other. I want to do this with a predicate.
So I have Controller called Guest List and another called Friends.
Friends and GuestList booth hold people objects.
What I'm thinking is that when GuestList has a person in it, that person
doesn't appear in Friends anymore - not removed, just filtered out.
So I'm thinking, using an NSPredicate I can do something like this:
NONE name IN {'Tom','Jones'}
as a predicate when Tom and Jones are in the GuestList, that way
Friends will show any person as long as thier name is not Tom or Jones.
It would have to be made dynamically as people are added and removed
from guestList, but I think its a clean way...
If anyone has any suggestion, I would appreciate it!
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden