How to destroy my morph properly ?

Joseph Frippiat joseph.frippiat at skynet.be
Tue Jan 11 19:17:16 UTC 2005


Thank you for your kind answer.

Joseph

----- Original Message ----- 
From: "hjh-sqlist" <hjh-sqlist at lexdb.net>
To: <frippiat.j at kst.be>; "The general-purpose Squeak developers list" 
<squeak-dev at lists.squeakfoundation.org>
Sent: Tuesday, January 11, 2005 6:48 PM
Subject: Re: How to destroy my morph properly ?


> Could you please try using the explanations mentioned in the FAQ on this 
> subject
> and ask us more specifically on the things that are not explained enough 
> there
> or missing?
>
> http://minnow.cc.gatech.edu/squeak/1584
>
> Hannes
>
>
> Quoting Joseph Frippiat <frippiat.j at kst.be>:
>
>> Hello,
>>
>> I created a new morph with several buttons to be used as the man machine
>> interface.
>> This morph use a file to log events and operator actions.
>>
>> The morph is created with "new openInWorld"
>>
>> How do I destroy my morph properly ?
>> I know I can use the delete message, but how to tell my morph to log a 
>> last
>> message and to close the log file before quitting ?
>
> I would  superride the 'delete' message in your morph and write a note on 
> the
> log before calling
>   super delete.
>
>
>> I can also create a quit button and create a method to do the job, but in
>> case of the operator use the pink Halo (move to trash) how to call a
>> cleaning method automatically ?
>> Looking around I found the "release" method.  Do I need to create one ?
>> When is this method called ?
>> I created a release method, but it isn't called when I use the pink halo.
>>
>> I use Squeak 3.6 .
>>
>> Thanks
>>
>> Joseph
>>
>>
>>
>
>
>
>
>
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 10/01/2005
>
> 



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 10/01/2005




More information about the Squeak-dev mailing list