Is it possible to create a custom controller key for an NSArrayController? There are keys for "arrangedObjects", "selection" etc... Is it possible to implement your own? I can't seem to find any info on this anywhere.
My reason for wanting to do this (besides it seeming like a useful thing to be able to do) is:
I have Entity "Car", with Attributes "color" and "mileage", and an array controller, "CarArrayController" which holds these objects and displays them in a table. Below the table I want two text fields one displaying total red car mileage and the other total blue car mileage. Obviously I can display the total of all the cars: Bind Value To "[email protected]", but so far I have been unable to get separate sums for red and blue cars without implementing more arrays or array controllers.
If I could create a Controller Key "arrangedRedCarObjects" which obviously only returned the red cars, I could have a binding to: "[email protected]".
I can't seem to find any way to achieve my goal :(
There must be a way to get the result I need (it seems like a generic problem), please help!
Cheers,
Oli