sorry i sent it like that, i messed up.<br><br>
<div><span class="gmail_quote">On 1/3/08, <b class="gmail_sendername">David Zmick</b> <<a href="mailto:dz0004455@gmail.com">dz0004455@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span class="q"><br><br>
<div><span class="gmail_quote">On 1/3/08, <b class="gmail_sendername">David Zmick</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dz0004455@gmail.com" target="_blank">dz0004455@gmail.com</a>
> wrote:</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>ok,</div>
<div>this is the Framework class:</div>
<div> </div></blockquote></span>
<div> Object subclass: #Framework<br> instanceVariableNames: 'input activeModule'<br> classVariableNames: ''<br> poolDictionaries: ''<br> category: 'dz-CrypticSqueak'</div>
<div><br> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span class="q">
<div>Framework>>getInput</div>
<div> ^input</div>
<div>Framewor>>prompt: aString</div>
<div> "Not yet finished, will be sent to a UI eventually"</div></span>
<div><span>
<div> Transcript cr; show: aString; cr.</div></span></div></blockquote>
<div> </div>
<div>Framework input: aString</div>
<div> input := aString.</div>
<div> </div>
<div> A Basic "module"</div>
<div> </div>
<div>BasicModule>>ManCommand:</div>
<div> "Tells the framework what to do when it gets a method"</div>
<div> </div>
<div>BasicModule>>initialize</div>
<div> framework := Framework new.</div>
<div> </div>
<div>The class that manages where the commands go, all of the commands, in a way it is part of the framework.</div>
<div> </div>
<div>ManCommands>>sendCommand: aCommandString</div>
<div> </div>
<div>mod = BasicModule new. "THIS IS NOT WHAT I WANT!! BAD!!!"</div>
<div>mod ManCommand: aCommandString.</div>
<div> </div>
<div>then there are always some accessors thats just basically how it works.</div>
<div> </div>
<div> </div>
<div>One more question...How do I know when i need to use a class method instead of an instance method?</div>
<div><span class="e" id="q_1174022c2ae77dfe_4">
<div><br> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><span>
<div> </div>
<div><span class="gmail_quote">On 1/3/08, <b class="gmail_sendername">Leandro Caniglia</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:caniglia@dm.uba.ar" target="_blank">caniglia@dm.uba.ar
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="blue" link="blue">
<div>
<p><font face="Arial" color="blue" size="2"><span style="FONT-SIZE: 11pt; COLOR: blue; FONT-FAMILY: Arial">OK. Then just show us some of your source code so we can figure out what you are trying to do.</span></font></p>
<p><font face="Arial" color="blue" size="2"><span style="FONT-SIZE: 11pt; COLOR: blue; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" color="blue" size="2"><span style="FONT-SIZE: 11pt; COLOR: blue; FONT-FAMILY: Arial">/Leandro</span></font></p>
<p><font face="Arial" color="blue" size="2"><span style="FONT-SIZE: 11pt; COLOR: blue; FONT-FAMILY: Arial"> </span></font></p>
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">
<hr align="center" width="100%" size="2">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">
squeak-dev-bounces@lists.squeakfoundation.org</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org
</a>] <b><span style="FONT-WEIGHT: bold">On Behalf Of </span></b>David Zmick<br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> Wednesday, January 02, 2008 8:00 PM<br><b><span style="FONT-WEIGHT: bold">To:</span></b> The general-purpose Squeak developers list
<br><b><span style="FONT-WEIGHT: bold">Subject:</span></b> Re: my Framework</span></font></p></div>
<div><span>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p>
<p style="MARGIN-BOTTOM: 12pt"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">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
</span></font></p>
<div>
<p><span><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">On 1/2/08, <b><span style="FONT-WEIGHT: bold">Ralph Johnson</span></b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:johnson@cs.uiuc.edu" target="_blank">
johnson@cs.uiuc.edu</a>> wrote:</span></font></span> </p>
<p style="MARGIN-BOTTOM: 12pt"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">On Jan 2, 2008 1:39 PM, David Zmick <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dz0004455@gmail.com" target="_blank">
dz0004455@gmail.com</a>> wrote: <br>> i am working on a program with a framework, and modules that will plug into<br>> it, and i need to know how to send a class name around. for example: i have<br>> a method in one class, that servers as a module, that will "Procces
<br>> Commands" sent to the framework. I have another class that is suposed to<br>> manage the commands and getting them to the right place.<br>><br>> ManCommands-the command managing class<br>><br>> Framework-the framework that manages input/output
<br>><br>> BasicModule1-a module that will eventually be used to run other "modules"<br>><br>> how do i get the framework to tell ManCommands to send the command sent to<br>> the framework to the ProccessCommand method it BasicModule1>
<br><br>I've taught Smalltalk to a lot of people. Based on that experience, I<br>think you are heading in the wrong direction. You probably shouldn't<br>be talking about modules, but about classes. You shouldn't think
<br>about a module that runs other modules. Further, classes are objects,<br>so you usually don't pass names of classes around, but the classes<br>themselves.<br><br>Is this your first Smalltalk system?<br><br>-Ralph Johnson
</span></font></p></div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></span></div></div></div><br><br><br></blockquote></div><br></span></div></blockquote><br></span></div></blockquote></div><br>