Need help on Morphic

Stephane Ducasse ducasse at iam.unibe.ch
Mon Aug 21 15:57:24 UTC 2000


Hi, 

I really start to have fun with morphic but I have some questions: 


Question 1: How to forbid halos

	I tried 

	wantsHalo
		^ false

	definesOwnHaloHandles
		^ false

	hasHalo
		^ false

Question 2: How to delete a morph definitively

I used delete but 
	MyMorph allInstances is not empty


Then I saw abandon but I got the same result then browsing I found the
following code.  I have the impression that the method is intended for
subclasses. But I was expected that Morph>>delete and Morph>>abandon
would be different or at least that one of the two really delete
cleanly the morph.

	abandon
	"Like delete, but we really intend not to use this morph again.  
	Clean up a few things."

	self delete

I tried to look into the TrashCanMorph but I could not find.

Question 3 More a remark. I was thinking that delete just remove the morph
from the world, and was wondering what is the opposite action that could bring
the morph in the world. I tried openInWorld and it works but I was thinking
that the protocol could be more symmetric.

addInWorld/removeFromWorld
delete/add

Question 4 How to invoke a full gc
(in VisualWorks MemoryObject verboseGC)

Question 5 Is caseOf really used?

While browsing Object I stumbled over an horrible message
caseOf: in Object!!?!!
Then the senders showed that nobody except 
MessageNode
	where adding caseOf: in MacroSelectors 
So I was wondering if caseOf: is necessary in Object, used by Ctranslater
??


Question 6 Finding the owner of an object

Is there a way like in VW to find what are the owner of an object?


Thanks in advance


-- 
Stephane DUCASSE (ducasse at iam.unibe.ch) http://www.iam.unibe.ch/~ducasse/
"if you knew today was your last day on earth, what would you do 
different? ... especially if, by doing something different, today 
might not be your last day on earth" Calvin&Hobbes

University of Bern, Institut fuer informatik and Mathematik
IAM-SCG, 10 neubruckstrasse, CH-3012 Bern, Switzerland.





More information about the Squeak-dev mailing list