Predicate on an ArrayController updated automatically?
Predicate on an ArrayController updated automatically?
- Subject: Predicate on an ArrayController updated automatically?
- From: Alexander Lamb <email@hidden>
- Date: Tue, 31 Oct 2006 16:58:23 +0100
Hello list,
I have an ArrayController filled with objects (CoreData app,
ArrayController using entity).
I now need another ArrayController which is a subset of this first
one. The subset is defined by an attribute of the objects in the
first ArrayController.
I thought:
- create a new ArrayController
- bind the content array to the first controller
- add a predicate in the Attributes of the sub ArrayController (the
predicate is myBoolVariable != 0 ) (to say all the objects where
myBoolVariable is YES)
Problems:
- I get the complete list, even the predicate is not applied
- How can I register for updates to make sure if any of the
myBoolVariable changes the predicate is recalculated
Thanks!
Alex
--
Alexander Lamb
email@hidden
_______________________________________________
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