How to have one array controller observing the other

  • I have two array controllers. One is called Recipe and contains several properties, indexed from 0 to N. A second one, indexedProperties, lists properties of a selected index, to be used in other parts of the code. This is done by setting a filterPredicate (binding).

    Now I have found that when a change is made to Recipes (by updating one of the properties), this is not communicated directly to indexedProperties.
    Is it possible to have this done without adding code (i.e. making it a custom array controller)?

    Thanks in advance,

    Arthur C.
  • > Now I have found that when a change is made to Recipes (by updating one of the properties), this is not communicated directly to indexedProperties.
    > Is it possible to have this done without adding code (i.e. making it a custom array controller)?

      Are all of your accessors (such as -setIndexedProperties:) properly
    wrapped in -willChangeValueForKey / -didChangeValueForKey: calls? This
    is the most common cause of this type of problem.

    --
    I.S.
previous month october 2007 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