Ok, I filed out and it exported the file 'WidgetClassList.st' . This is the contents of the file:
'From Pharo7.0.3 of 12 April 2019 [Build information: Pharo-7.0.3+build.158.sha.0903ade8a6c96633f07e0a7f1baa9a5d48cfdf55 (64 Bit)] on 16 July 2019 at 3:58:28.785036 pm'! ComposablePresenter subclass: #WidgetClassList instanceVariableNames: 'list' classVariableNames: '' poolDictionaries: '' category: 'QuotesProg'! !WidgetClassList methodsFor: 'initialization' stamp: 'SteveQuezadas 7/10/2019 14:07'! initializeWidgets list := self newList. list items: (AbstractWidgetPresenter allSubclasses sorted: [:a :b | a name < b name ]). self focusOrder add: list.! ! !WidgetClassList methodsFor: 'events-shortcuts' stamp: 'SteveQuezadas 7/15/2019 21:40'! whenSelectedItemChanged: aBlock Transcript show: 'got here'; cr. ! ! !WidgetClassList methodsFor: 'api' stamp: 'SteveQuezadas 6/26/2019 18:22'! title ^ 'Widgets'! ! !WidgetClassList methodsFor: 'api' stamp: 'SteveQuezadas 7/15/2019 19:09'! list ^ list.! ! "-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "! WidgetClassList class instanceVariableNames: ''! !WidgetClassList class methodsFor: 'specs' stamp: 'SteveQuezadas 7/10/2019 14:14'! defaultSpec ^ SpecLayout composed add: #list; yourself! ! On Tue, Jul 16, 2019 at 7:43 AM Ben Coman <[email protected]> wrote: > On Tue, 16 Jul 2019 at 12:49, Steve Quezadas <[email protected]> wrote: > > > > I am running through the "Spec UI Framework" tutorial, and in it has a > widget class inherited from "ComposablePresenter" (ComposablePresenter > subclass: #WidgetClassList). But for some reason the > "whenSelectedItemChanged:" method call does not execute when I select any > item on the GUI list. Is there anything I'm missing? > > > > I posted this earlier on the list, and someone suggested I try > "whenActivatedDo:" or "whenSelectionChangedDo:", but it doesn't do anything > as well. The code looks like this: > > > > whenSelectedItemChanged: aBlock > > Transcript show: 'should get here; cr. > > > > I am using Pharo 7. > > Can you FileOut the entire sample class and attached it? > > cheers -ben > >
