Hi Jerome,

With the help of Jeroen earlier on, I have been able to complete this task. His approach is very similar to yours though.

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.

Here is a screenshot which shows you the Open File window, for which this question originally was.
http://www.se51.net/img/cosmos/csmsOpenFileWithPulldown_Big.jpg

More screens of the project
http://www.se51.net/index.php?page=cosmos-currentshots

And what it is.
http://www.se51.net/index.php?page=cosmos-about


Thanks again,
Marcus



--
iMac -- 20 inch -- Core 2, 2 GHz -- 1 GB RAM -- Superdrive -- Mac OS X Leopard 10.5.2 MacBook -- 13.3 inch -- Core 2, 1.83 GHz -- 1.5 GB RAM -- Combodrive -- Mac OS X Leopard 10.5.2 iMac G5 -- 17 inch -- PPC G5 1.8 GHz -- 1 GB RAM -- Superdrive -- Mac OS X Leopard 10.5.2
iPod touch -- 16 GB -- Software Upgrade -- OS X 1.1.4

On 4 Mar 2008, at 09:05, [EMAIL PROTECTED] wrote:

Hi Marcus

To get the best help, please describe the user story.
What are you trying to do?


You can give buttons arguments:
myButton target: aTarget .
myButton actionSelector:  #someAction: .
myButton arguments: Array with: myArgument .
        (You have to change #arguments: when ever the
argument changes.)

or you can use blocks as targets

myButton target: [ aTarget someAction: myArgument ]
actionSelector: value .

where myArgument could be something like
(FillinTheBlank request: 'Eh wot Marcus?')


This all seems a difficult way to achieve something.
Which is why I mention telling the story first. Then
it might be seen if what you want is better achieved
some other way.

Yours in curiosity and service, --Jerome Peace

_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to