my Framework

Leandro Caniglia caniglia at dm.uba.ar
Wed Jan 2 21:36:05 UTC 2008


Hi David.

 

I'm not sure I understand your question. However, if your commands are
Smalltalk selectors (method names), then you can send the message perform:
using the command you want to execute as the argument. For instance, 

ManCommands perform: command

 

/Leandro

 

 

  _____  

From: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org] On Behalf Of David
Zmick
Sent: Wednesday, January 02, 2008 4:40 PM
To: squeak-dev at lists.squeakfoundation.org
Subject: my Framework

 

i am working on a program with a framework, and modules that will plug into
it, and i need to know how to send a class name around. for example: i have
a method in one class, that servers as a module, that will "Procces
Commands" sent to the framework. I have another class that is suposed to
manage the commands and getting them to the right place. 

ManCommands-the command managing class 

Framework-the framework that manages input/output 

BasicModule1-a module that will eventually be used to run other "modules" 

how do i get the framework to tell ManCommands to send the command sent to
the framework to the ProccessCommand method it BasicModule1>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080102/5610dd32/attachment.htm


More information about the Squeak-dev mailing list