[Newbies] Re: Parse an argument for a symbol that requires one
Jeroen van Hilst
jeroen at keizerrijk.net
Tue Mar 4 06:40:26 UTC 2008
"Marcus Strehlow" <marcus.strehlow at gmail.com> wrote in message
news:1872F954-FB0E-4D1D-AA9C-85C27F2CAD09 at gmail.com...
> Hi guys,
> self target: aTarget
> actionSelector: #someAction.
> And it works. But what if not only an action should be executed, what if
> the actionSelector gets a symbol that requires an argument?
I was curious about this, so i went and got this to work: (notice the ':' in
b := ScriptableButton new openInWorld.
b target: Transcript.
b actionSelector: #show:.
b arguments: (Array with: 'test').
More information about the Beginners