[Q] Connectors

German Morales germanmorales at delta-sys.com
Sat Feb 21 11:44:09 UTC 2004


Hi all,

Look at
  Morph wantsAttachmentFromEnd: endIndex ofConnector: aConnector
and
  NCConnectorMorph wantsToAttachEnd: index toMorph: aMorph

The last one is meant to be overriden by your subclass of
NCConnectorMorph, if you have one.

German Morales


It seems that Baveco, Hans wrote:
> 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