How to efficiently get all instances from deeper level in Cocoa model?
- by Johan Kool
In my Cocoa Mac app I have an instance A which contains an unordered set of instances B which in turn has an ordered set of instances C. An instance of C can only be in one instance B and B only in one A.
I would like to have an unordered set of all instances C available on instance A. I could enumerate over all instances B each time,…