my Framework

David Zmick dz0004455 at gmail.com
Thu Jan 3 14:52:06 UTC 2008


sorry i sent it like that,  i messed up.

On 1/3/08, David Zmick <dz0004455 at gmail.com> wrote:
>
>
>
> On 1/3/08, David Zmick <dz0004455 at gmail.com> wrote:
>
> > ok,
> > this is the Framework class:
> >
> >
>   Object subclass: #Framework
>   instanceVariableNames: 'input activeModule'
>   classVariableNames: ''
>   poolDictionaries: ''
>   category: 'dz-CrypticSqueak'
>
>
>
> > Framework>>getInput
> >      ^input
> > Framewor>>prompt: aString
> >     "Not yet finished,  will be sent to a UI eventually"
> >      Transcript cr; show: aString; cr.
> >
>
> Framework input: aString
>        input := aString.
>
>  A Basic "module"
>
> BasicModule>>ManCommand:
>   "Tells the framework what to do when it gets a method"
>
> BasicModule>>initialize
>    framework := Framework new.
>
> The class that manages where the commands go, all of the commands, in a
> way it is part of the framework.
>
> ManCommands>>sendCommand: aCommandString
>
> mod = BasicModule new.  "THIS IS NOT WHAT I WANT!! BAD!!!"
> mod ManCommand: aCommandString.
>
> then there are always some accessors thats just basically how it works.
>
>
> One more question...How do I know when i need to use a class method
> instead of an instance method?
>
>
>
> >
> > On 1/3/08, Leandro Caniglia <caniglia at dm.uba.ar > wrote:
> > >
> > >  OK. Then just show us some of your source code so we can figure out
> > > what you are trying to do.
> > >
> > >
> > >
> > > /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 8:00 PM
> > > *To:* The general-purpose Squeak developers list
> > > *Subject:* Re: my Framework
> > >
> > >
> > >
> > > yes, it is my first, but i understand all of the classes, etc.  I want
> > > to make an expandable cryptology system that will have other classes with
> > > certain methods to control the framework, or base class,  its just fancy
> > > words
> > >
> > > On 1/2/08, *Ralph Johnson* < johnson at cs.uiuc.edu> wrote:
> > >
> > > On Jan 2, 2008 1:39 PM, David Zmick < dz0004455 at gmail.com> wrote:
> > > > 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>
> > >
> > > I've taught Smalltalk to a lot of people.  Based on that experience, I
> > > think you are heading in the wrong direction.  You probably shouldn't
> > > be talking about modules, but about classes.  You shouldn't think
> > > about a module that runs other modules.  Further, classes are objects,
> > > so you usually don't pass names of classes around, but the classes
> > > themselves.
> > >
> > > Is this your first Smalltalk system?
> > >
> > > -Ralph Johnson
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080103/0db9067e/attachment.htm


More information about the Squeak-dev mailing list