<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Jerome,<div><br class="webkit-block-placeholder"></div><div>With the help of Jeroen earlier on, I have been able to complete this task. His approach is very similar to yours though.</div><div><br></div><div>The short version is, that I am trying to create my own Unix operating system, which comes with a user interface that is entirely written in Squeak, and therefore Smalltalk. This particular question was aimed at an obstacle I was facing while creating methods and operations for a Pulldown menu that I wrote for my UI. When a menu entry is clicked, an variable needs to be changed into a new value, which is why that one method requires an argument you see.</div><div><br class="webkit-block-placeholder"></div><div>Here is a screenshot which shows you the Open File window, for which this question originally was.</div><div><a href="http://www.se51.net/img/cosmos/csmsOpenFileWithPulldown_Big.jpg">http://www.se51.net/img/cosmos/csmsOpenFileWithPulldown_Big.jpg</a></div><div><br class="webkit-block-placeholder"></div><div>More screens of the project</div><div><a href="http://www.se51.net/index.php?page=cosmos-currentshots">http://www.se51.net/index.php?page=cosmos-currentshots</a></div><div><br class="webkit-block-placeholder"></div><div>And what it is.</div><div><a href="http://www.se51.net/index.php?page=cosmos-about">http://www.se51.net/index.php?page=cosmos-about</a></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Thanks again,</div><div>Marcus</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--&nbsp;<br><b>iMac -- 20 inch -- Core 2, 2 GHz -- 1 GB RAM -- Superdrive -- Mac OS X Leopard 10.5.2</b><br>MacBook -- 13.3 inch -- Core 2, 1.83 GHz -- 1.5 GB RAM -- Combodrive -- Mac OS X Leopard 10.5.2<br>iMac G5 -- 17 inch -- PPC G5 1.8 GHz -- 1 GB RAM -- Superdrive -- Mac OS X Leopard 10.5.2<br><b style="color: rgb(102, 102, 102); ">iPod touch -- 16 GB -- Software Upgrade -- OS X 1.1.4</b></div></div></span> </div><br><div><div>On 4 Mar 2008, at 09:05, <a href="mailto:beginners-request@lists.squeakfoundation.org">beginners-request@lists.squeakfoundation.org</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">Hi Marcus<br><br>To get the best help, please describe the user story.<br>What are you trying to do?<br><br><br>You can give buttons arguments:<br>myButton target: aTarget .<br>myButton actionSelector: &nbsp;#someAction: .<br>myButton arguments: Array with: myArgument .<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>(You have to change #arguments: when ever the<br>argument changes.)<br><br>or you can use blocks as targets<br><br>myButton target: [ aTarget someAction: myArgument ]<br>actionSelector: value .<br><br>where myArgument could be something like<br>(FillinTheBlank request: 'Eh wot Marcus?')<br><br><br>This all seems a difficult way to achieve something.<br>Which is why I mention telling the story first. Then<br>it might be seen if what you want is better achieved<br>some other way.<br><br>Yours in curiosity and service, --Jerome Peace</span></blockquote></div><br></div></body></html>