On Wed, Oct 8, 2014 at 10:26 AM, Hilaire <hilaire@drgeo.eu> wrote:

> 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'd say nobody used it before and that's why it is like it is :). Just old unused code.
��
I guess we can get something cleaner
with Announcement

Sure!
��


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 <hilaire@drgeo.eu
> <mailto:hilaire@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