Finding ConnectorMorphs

Ned Konz ned at
Mon Feb 24 02:39:13 UTC 2003

On Sunday 23 February 2003 03:30 pm, John Cigas wrote:
> I'm using Connectors and have reached an impasse. I've got
> a few BasicShapeMorphs connected with ConnectorMorphs. What I'd
> like to do is have a BasicShapeMorph send a message to one of the
> ConnectorMorphs attached to it, but I'm stuck finding the
> ConnectorMorphs. It seems like I could get to them through the
> BasicShapeMorph's extension, but I'm baffled at what the extension
> is or how to walk through its contents.
> I'd appreciate any help on getting from a BasicShapeMorph to an
> attached ConnectorMorph.

Look in the "*connectors-queries" message protocol of Morph.

In your case, the answer you want would be given by

	myMorph connections

The comment in Morph>>connections says:
 	"Answer the NCConnectorMorphs that are tied to me"

You are correct about this information being in the extension 
(specifically, the property #connectedConstraints), but you should 
never have to look at it there.

Ned Konz

More information about the Squeak-dev mailing list