I'll look at AlainTreeModel, then. On May 3, 2013, at 5:35 PM, Clément Bera <bera.clement@gmail.com> wrote:
It is AlainTreeModel.
Ben told me, I cheated. When I don't know I go ask him. Reportedly he has sent a mail yesterday about that. But I didn't see it.
Me neither ;(
2013/5/3 Clément Bera <clement.bera@inria.fr> It is AlainTreeModel.
Ben told me, I cheated. When I don't know I go ask him. Reportedly he has sent a mail yesterday about that. But I didn't see it.
2013/5/3 roberto.minelli@usi.ch <roberto.minelli@usi.ch>
Ok, what's "the correct implementation of tree"?
On May 3, 2013, at 4:48 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote:
Use the correct implementation of tree, it will help :)
Ben
On May 3, 2013, at 3:49 PM, "roberto.minelli@usi.ch" <roberto.minelli@usi.ch> wrote:
I managed to accomplish the said behavior in this way
self on: (Character arrowRight asShortcut) do: [ :morph | | item | item := self selectedItem. morph selectedMorph toggleExpandedState. self updateTree. self selectedItem: item. ].
self is an instance of TreeModel.
Is this the way it is supposed to be done? By the way Character arrowRight asShortcut does not always work: Sometimes it does not catch the event. And also the #selectedItem is not selected after expanding the node. Any intuition?
Thanks in advance.
Cheers, R
On May 3, 2013, at 12:02 PM, roberto.minelli@usi.ch wrote:
Hi,
I built a TreeModel using Spec. I cannot find a way to expand the items in the model by using the left arrow on the keyboard. I cannot find neither the correct binding nor the correct message to call.
Any hint here?
Thanks in advance, R
-- Clément Béra Mate Virtual Machine Engineer Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq