This example I used to have does not work any more in the latest Pharo 3:

tree := TreeModel new.
tree openWithSpec.

tree columns: (Array
 with: (TreeColumnModel new displayBlock: [:node | node content first
asString ]; headerLabel: 'Name'; yourself)
with: (TreeColumnModel new displayBlock: [:node | node content second
asString ]; headerLabel: 'Last Name'; yourself)
 with: (TreeColumnModel new displayBlock: [:node | node content third
asString ]; headerLabel: 'Age'; yourself)
with: (TreeColumnModel new displayBlock: [:node | node content fourth
asString ]; headerLabel: 'Gender'; yourself)).
 tree roots: {
{'Benjamin'.'Van Ryseghem'.'26'.'M'} .
{'Pamela'.'Anderson'.'Far too much'.'F'}
}.

How can I have a similar behavior to what it used to do ?

Thanks !

Reply via email to