What would keep a PluggableListMorph from allowing selections?

Chris Becker chbecker at neo.rr.com
Sun Jan 25 16:05:43 UTC 2004


Ahh, that's the missing link. I was sending changed: when the list is
modified but not when the index is updated.

Thanks Ned.

Chris


> -----Original Message-----
> From: Ned Konz [mailto:ned at squeakland.org]
> Sent: Sunday, January 25, 2004 12:54 AM
> To: 'The general-purpose Squeak developers list'
> Cc: Chris Becker
> Subject: Re: What would keep a PluggableListMorph from allowing
> selections?
> 
> On Friday 23 January 2004 9:30 am, Chris Becker wrote:
> > Hi all,
> >
> > I have a SystemWindow pane with a PluggableListMorph whose selection is
> > never highlighted when I click on a list item.
> >
> > Each list item understands asString and is properly displayed. The
> > PluggableListMorph is definitely firing my model's getListSelector and
> > setIndexSelector when I click, but its selectedMorph and selection
> instance
> > variables never get set.
> >
> 
> And are you sending an appropriate changed: message with the name of your
> get
> index selector?
> 
> (assuming the PLM is plugged to these two selectors):
> 
> myGetIndexSelector
> 	^myIndex
> 
> mySetIndexSelector: aNumber
> 	myIndex := aNumber.
> 	self changed: #myGetIndexSelector.




More information about the Squeak-dev mailing list