on PluggableTreeMorph changeSelected selector

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

on PluggableTreeMorph changeSelected selector

laurent laffont
Hi,

I have
aTreeMorph := PluggableTreeMorph 
on: self 
list: #items 
selected: #selectedItem 
changeSelected: #onItemClick:.

MyClass>>selectedItem
    ^ myCollection collect:[:item |  PluggableListItemWrapper with: item]


When a item is selected, PluggableTreeMorph passes the wrapped item to #onItemClick:

Shouldn't it be more consistent to have the instance of  PluggableListItemWrapper passed instead ?

Laurent Laffont

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project