[Newbies] Re: Parse an argument for a symbol that requires one

Marcus Strehlow marcus.strehlow at gmail.com
Tue Mar 4 20:40:01 UTC 2008

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.

More screens of the project

And what it is.

Thanks again,

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, beginners-request at lists.squeakfoundation.org  

> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080304/0c6d2aef/attachment.htm

More information about the Beginners mailing list