I have a tree controller bound to an array, called "content". "content" is an array of model objects, called "Car". Each "Car" contains an NSString called "carName" and an NSMutableArray called "mostPopularColors". "mostPopularColors" contains NSMutableDictionary objects with keys like: "most popular", "second most popular", "third most popular" etc and values like: "red", "green", "blue" etc.
An outline view is bound to the tree controller arranged objects and displays the "carName" of every "Car" in "content". A separate table view lists every "carName" in one column. This is done by having an array controller bound to the tree controller (controller key: selection, model key path: allChildLeafs).The table column value is then bound to the array controller's arranged objects, model key path: carName.
In the table view, I want two other columns listing the most popular color and second most popular color respectively. So the final table should have three columns listing all the car names along with each car's two most popular colors.
I can access the car names as described but not the colours since they themselves are in arrays.
I have tried to make a second array controller and link it to the first but can't get it to work.
So in the end I want to be able to select a car or cars in the outline view and see all their names and top two colors of each in the table view.