You can get the selection directly in FastTableModel by Setting #handlesDoubleClick: to true and the event handler block using #doubleClickAction:
--------------------- FastTableModel new icons: [ :e | example iconNamed: #forwardIcon ]; items: (1 to: 10) asArray; handlesDoubleClick: true; doubleClickAction: [ :ftStrong | ftStrong inspect ]; whenSelectedItemChanged: [ :new :old :something :announcment | { new . old . something . announcment } inspectOnce ]; openWithSpec. ----------------------- Best regards, Henrik -----Opprinnelig melding----- Fra: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] På vegne av Matteo Sendt: 06 January 2017 16:35 Til: pharo-users@lists.pharo.org Emne: Re: [Pharo-users] Mouse events in FastTableModel subclass [Spec] Update: problem fixed by adding an "Announcer" to the "double click" event, i.e.: morWidget onAnnouncement: FTStrongSelectionChanged send: #doubleClick: to: self. Where "morWidget" is the morphic object representing a list of pictures, "self" is the "MorphicPictureListAdapter", which creates the "morWidget" object. The method "doubleClick:" contains the actions to be performed when the event is triggered. Note that, in the "FTAnnouncement" hierachy, the "double click" event is represented by the class "FTStrongSelectionChanged", which I found a little tricky. Bye, Matteo