> ifNotNil: [^self windowEventHandler windowEvent: anEvent]. Just a remark Looking at this code and the protocol, self windowEventHandler must responds a Morph. There are no such things as a WindowEventHandler in the image. A bit misleading. This whole implementation smell. I guess we can get something cleaner with Announcement
Hilaire Le 01/10/2014 13:51, Guillermo Polito a écrit : > I'd bet it is... > > PasteUpMorph>>windowEvent: anEvent > self windowEventHandler > ifNotNil: [^self windowEventHandler windowEvent: anEvent]. > > anEvent type == #windowClose > ifTrue: [WorldState quitSession]. > > and #windowsEvent: is called in a sequence like: > > VM event => InputEventFetcher => Morphic event => PasteUpMorph ... > > On Wed, Oct 1, 2014 at 1:48 PM, Hilaire <hila...@drgeo.eu > <mailto:hila...@drgeo.eu>> wrote: > > Hello, > > I would like to change the behavior of Pharo when the user clicks on the > close button of the host window. > > So far it looks like #quitSession is sended from somewhere, but I fail > to see the chain of call between the host window and the #quitSession > message. > > Any idea? > > Thanks > > Hilaire > > > -- > Dr. Geo - http://drgeo.eu > iStoa - http://istoa.drgeo.eu > > > -- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu