[Cuis-dev] cascade and youself

Mariano Montone marianomontone at gmail.com
Thu Jan 27 03:59:25 PST 2022


El 27/1/22 a las 07:17, Hilaire Fernandes via Cuis-dev escribió:
> Hi,
> 
> Exploring...
> 
> This code below does not work (#openInWorld send to the array of
> buttons) but you get the idea of the intend.
> 
> How will you make it work, if possible,  without using a local variable
> of course ?

I think you can't? The receiver object is the result of (self fromList:
#('Yes' 'No')), and so #yourself is sent to that object.

There may be some trick to avoid a variable here, but I'm not aware of it.

Cheers,

Mariano

> 
> |RadioGroup>>example1|
> 
> |"|
> 
> |self example1 openInWorld|
> 
> |"|
> 
> |^ self fromList: #('Yes' 'No') ::|
> 
> |buttons do: [:each | |
> 
> |each when: #radioSelection send: #show: to: Transcript];|
> 
> |yourself|
> 
> 
> Thanks
> 
> Hilaire
> 
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu
> 
> 



More information about the Cuis-dev mailing list