[Q] Connectors

Baveco, Hans Hans.Baveco at wur.nl
Fri Feb 20 22:07:36 UTC 2004


Hi, I am trying to adapt Connectors (1.9) to my needs - connecting only morphs of a certain class. I found out how to connect correctly when creating a new connector (an instance of a subclass of NCConnectorMorph I defined). HOwever, how to proceed when disconnecting and reconnecting an existing morph?  I want the blue handles to appear only on morphs that are allowed to be connected by my connector and can't figure out how to do this (currently the morphs in my application don't even show these handles, so one question is what determines whether the handles appear? I may have overriden some mouse event code or...?). 
I guess the general question is "can one make connectors choosy?": with handles that show up only on the preferred morphs and only these preferred morph being connectable?
 
Hopefully someone can help me here...
 
Hans


More information about the Squeak-dev mailing list