Predicate on an ArrayController updated automatically?

  • 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
    <alamb...>
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today