PDA

View Full Version : Multiple tree controls in a window




McBgnr
May 7, 2009, 09:13 AM
Referring some tutorials I have been able add a Treecontrol to my app, and I am populating its content programatically.

I want to use another tree control with programatically populated content. Will I have to use a new instance of OutlineController and TreeViewController? Or is there some other way of doing it? Please pardon me if this appears to be a very basic question :-( (I am very new to mac world)



kainjow
May 7, 2009, 10:27 AM
You probably just want a second outline view with a second tree controller that is bound to a different object. You *could* share the existing ones and just have the tree controller bind to a different object, but that's just unnecessary work (and would limit you to only one outline view).