[Q}[CONNECTORS] Connecting submorphs

Martin Drautzburg martin.drautzburg at web.de
Thu May 1 19:38:01 UTC 2003


Ned Konz <ned at bike-nomad.com> writes:

> > Or is there an easy solution ?
> 
> Yes. If you have a PUM that should accept connections, just make a 
> subclass that answers true to #Isconnectable.

You mean like this:

'From Squeak3.5 of ''11 April 2003'' [latest update: #5180] on 1 May 2003 at 9:23:05 pm'!
PasteUpMorph subclass: #Foo
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Dtz-SPM'!

!Foo methodsFor: 'as yet unclassified' stamp: 'dtz 5/1/2003 21:22'!
isConnectable

	^ true! !

Then I try to connect it to something with the Connector from the
Connectors Flap. For some reason #isConnectable does not get
called. There seems to be more to it.

How about the other scenario (a RectangleMorph containing another
RectangleMorph). The conainer seems to eat some crucial events so I
cannot connect to the inner Rectangle.



More information about the Squeak-dev mailing list