<div dir="auto">Actually #yourself is sent to the object returned by #buttons, which is also the receiver of #do:. The simplest solution I see if using a temporary variable. If RadioGrouo implemented #buttonsDo: you could solve it using that message, but adding that method is more complicated than using a temp, imo.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 27 Jan 2022 at 6:59 PM Mariano Montone via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">El 27/1/22 a las 07:17, Hilaire Fernandes via Cuis-dev escribió:<br>
> Hi,<br>
> <br>
> Exploring...<br>
> <br>
> This code below does not work (#openInWorld send to the array of<br>
> buttons) but you get the idea of the intend.<br>
> <br>
> How will you make it work, if possible, without using a local variable<br>
> of course ?<br>
<br>
I think you can't? The receiver object is the result of (self fromList:<br>
#('Yes' 'No')), and so #yourself is sent to that object.<br>
<br>
There may be some trick to avoid a variable here, but I'm not aware of it.<br>
<br>
Cheers,<br>
<br>
Mariano<br>
<br>
> <br>
> |RadioGroup>>example1|<br>
> <br>
> |"|<br>
> <br>
> |self example1 openInWorld|<br>
> <br>
> |"|<br>
> <br>
> |^ self fromList: #('Yes' 'No') ::|<br>
> <br>
> |buttons do: [:each | |<br>
> <br>
> |each when: #radioSelection send: #show: to: Transcript];|<br>
> <br>
> |yourself|<br>
> <br>
> <br>
> Thanks<br>
> <br>
> Hilaire<br>
> <br>
> -- <br>
> GNU Dr. Geo<br>
> <a href="http://drgeo.eu" rel="noreferrer" target="_blank">http://drgeo.eu</a><br>
> <a href="http://blog.drgeo.eu" rel="noreferrer" target="_blank">http://blog.drgeo.eu</a><br>
> <br>
> <br>
<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div></div>