<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Thanks for the feedback Ron and Chris, but I have some more questions now.</div><div><br></div><div>1. I am sorry I didn't fully understand what did you mean by "act as storage space for the code you write in Smalltalk". Also please specify whether by Smalltalk you meant Smalltalk-80 (i.e. Squeak) or did you mean Smalltalk only. As in is there a custom to refer to Squeak as Smalltalk. Doesn't it create am</div><div><br></div><div>2. You said the .sources file holds the code for the image file. But a lot of stuff is absent in the .sources file to make the image file what it is. For example, below<span style="font-size: 12pt;">&nbsp;</span><span style="font-size: 12pt;">is the general format throughout the files for adding methods in the class whose name will be written in place of</span><span style="font-size: 12pt;">&nbsp;</span><font face="Courier New" style="font-size: 12pt;">class-name:</font></div><div><p style="margin-top: 7.68pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; word-break: normal;"><font size="2"><span style="font-family: 'Courier New';">!class-name </span><span style="font-family: 'Courier New';">methodsFor</span><span style="font-family: 'Courier New';">: ‘protocol-name'
stamp: ‘some-tag DD/MM/YYYY time-in-format'!</span></font></p>

<p style="margin-top: 7.68pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; word-break: normal;"><span style="font-family: 'Courier New';"><font size="2">name-of-method</font></span></p>

<span style="font-family: 'Courier New';"><font size="2">&nbsp; “Body of the method”! !</font></span></div><div><font face="Tahoma" style=""><font size="2">Before adding methods to a class, in the .sources file only, there are some lines of code telling us which super class does it inherit from along with some description. There is no specification (in the .sources file) about the system category under which that&nbsp;particular&nbsp;class will fall. Yet, when one opens the image file all the classes are distributed among the system categories. From an object oriented point of view, I agree that it doesn't matter, but considering what I can see in the image file, and considering that I find it very hard at times to locate a class by browsing through the system browser by its name only and not knowing about it system category, I need to know if there is any part of the source code responsible for this classification with respect to system categories.</font></font></div><div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">3. Yes&nbsp;</font><a href="http://download.scratch.mit.edu/source-code/ScratchSource1.4.zip   " target="_blank">http://download.scratch.mit.edu/source-code/ScratchSource1.4.zip&nbsp;</a>&nbsp;is where I started as well. I used the image file from this link. I couldn't find a hierarchy browser or anything analogous to it. I am sorry if this list the not the best place to ask this question, but how can I go about the inheritance hierarchy by using an image for Scratch.</div><div><br></div><div>Chris, I have joined the other mailing list you suggested and will soon initiate this discussion over there too. Thanks.<br><br></div><div>Azka<br><br><div><hr id="stopSpelling">From: ron@usmedrec.com<br>To: squeak-dev@lists.squeakfoundation.org<br>Subject: RE: [squeak-dev] No subject<br>Date: Thu, 20 Jun 2013 22:32:51 -0400<br><br><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass span.ecxEmailStyle18 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
}

.ExternalClass div.ecxWordSection1 {
}

--></style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt;"><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;"><p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;"> squeak-dev-bounces@lists.squeakfoundation.org [mailto:squeak-dev-bounces@lists.squeakfoundation.org] <b>On Behalf Of </b>Azka Niazi<br><b>Sent:</b> Thursday, June 20, 2013 11:59 AM<br><b>To:</b> Squeak Developer Mailing List<br><b>Subject:</b> [squeak-dev] No subject</span></p></div></div><p class="ecxMsoNormal">&nbsp;</p><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Treat me like a beginner. I have two targets:</span></p><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">1. I want to document the source code of Scratch.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">2. I want to modify Scratch.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Below the #'s is what I have already been told through this mailing list.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Now, the source code provided for Scratch [1] has two files with code inside them; a .SOURCES file and a .CHANGES file. I have two simple questions:</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">What is the purpose of the two files?</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">If I want to change the code in one of these file and see it how does it come out, (how) can that be done?&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">Hello Azka,</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">The .sources and .changes files are not changed by hand they are files that act as storage space for the code you write in Smalltalk.&nbsp; The changes file tracks all changes that are made to the system.&nbsp; .sources is a file that holds the code for the image.&nbsp; You can think of a sources file as a starting point and changes adds to it.&nbsp; </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">You change code using browsers in Smalltalk itself.&nbsp; It’s not a good idea to try to change code in the files.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">I have been able to understand the format of the source code provided. I would like to ask is there is any code which is responsible for creating the OO world of Scratch. The system categories for Scratch objects hold a lot of classes in them. Those classes, along with a lot of other new and old classes have been used to construct Scratch. These classes didn't preexist. Can a file of code not be used to create new classes and system categories?</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">You create new classes using a Smalltalk browser.&nbsp; While you could use a file and file in the file it’s not a good idea to change code in files.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Squeak by Example [8] talks about a 'hierarchy browser' which is easy to find with the files provided with it. Is there a similar kind of thing to explore Scratch objects? If yes, how to get to it. If no, how do can I trace the hierarchy of inheritance objects used to make Scratch.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">For scratch you will need to use a development image, or break into the development environment to access the development tools.&nbsp; Haven’t tried it but maybe that is where you are having difficulty.&nbsp; I would start here: <a href="http://download.scratch.mit.edu/source-code/ScratchSource1.4.zip" target="_blank">http://download.scratch.mit.edu/source-code/ScratchSource1.4.zip</a> &nbsp;&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">A sealed image can lock out the dev tools, it may even strip out the development tools completely.&nbsp; Also a sealed image does not normally require a changes file since it is not used for the purpose of changing code.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p></div><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">All the best,</span></p><p class="ecxMsoNormal"><span style="font-size:14.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><b><span style="font-size:14.0pt;font-family:&quot;Corbel&quot;,&quot;sans-serif&quot;;color:#4F81BD;">Ron Teitelbaum</span></b></p><p class="ecxMsoNormal"><i><span style="font-size:9.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">Head Of Engineering</span></i></p><p class="ecxMsoNormal"><b><span style="font-size:9.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">3d Immersive Collaboration Consulting</span></b></p><p class="ecxMsoNormal"><span style="font-size:8.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;"><a href="mailto:ron@3dicc.com"><span style="color:blue;">ron@3dicc.com</span></a></span></p><p class="ecxMsoNormal"><span style="font-size:8.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">Follow Me On Twitter: <a href="https://twitter.com/RonTeitelbaum" target="_blank"><span style="color:blue;">@RonTeitelbaum</span></a></span></p><p class="ecxMsoNormal"><span style="font-size:8.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;"><a href="http://www.3dicc.com/" target="_blank"><span style="color:blue;">www.3dicc.com</span></a> </span></p><p class="ecxMsoNormal"><span style="font-size:8.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;"><a href="https://plus.google.com/u/0/b/108936249366287171125/108936249366287171125/posts" target="_blank"><span style="color:blue;">3d ICC on G+</span></a></span></p></div><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Thanks,</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#444444;">Azka</span><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"></span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#444444;">##################################</span><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"></span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#444444;">Scratch uses the Morphic UI on a Squeak image with a virtual machine underneath. The Squeak version is, I think, 2.8 (as opposed to 4.4 which is about to come out) and came out in 2005. The important difference is that the virtual machine has changed. Modern vms are closure complete and have a JIT.&nbsp;<br><br>To see Squeak 2.8 when it was released. [7]<br>For some videos on Scratch from a Squeak perspective [3-6].<br>An introductory book on Squeak. [8]<br>Source code on the virtual machines. [2].<br>The Scratch image that will not work on a modern Squeak virtual machine. [1]<br>But will work on a virtual machine from a Squeakland Etoys release. [10]<br>As you first expressed interest with how Scratch interfaces with the hardware you may need to join the VM-Beginners list [9].<br></span><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"><br><span style="color:#444444;">[1]&nbsp;</span><a href="http://info.scratch.mit.edu/Scratch_Source_Code_Licensed_Code" target="_blank"><span style="color:#0068CF;">http://info.scratch.mit.edu/Scratch_Source_Code_Licensed_Code</span></a><span style="color:#444444;"><br>[2]&nbsp;</span><a href="http://squeakvm.org/index.html" target="_blank"><span style="color:#0068CF;">http://squeakvm.org/index.html</span></a><span style="color:#444444;"><br>[3]&nbsp;</span><a href="http://www.youtube.com/watch?v=wqV3nGD9N7U" target="_blank"><span style="color:#0068CF;">http://www.youtube.com/watch?v=wqV3nGD9N7U</span></a><span style="color:#444444;"><br>[4]&nbsp;</span><a href="http://www.youtube.com/watch?v=XwmQ1DoEjsA" target="_blank"><span style="color:#0068CF;">http://www.youtube.com/watch?v=XwmQ1DoEjsA</span></a><span style="color:#444444;"><br>[5]&nbsp;</span><a href="http://www.youtube.com/watch?v=uGyfzw_gePo" target="_blank"><span style="color:#0068CF;">http://www.youtube.com/watch?v=uGyfzw_gePo</span></a><span style="color:#444444;"><br>[6]&nbsp;</span><a href="http://www.youtube.com/watch?v=YmTk9t71jZ4" target="_blank"><span style="color:#0068CF;">http://www.youtube.com/watch?v=YmTk9t71jZ4</span></a><span style="color:#444444;"><br>[7]&nbsp;</span><a href="http://ftp.squeak.org/2.8/" target="_blank"><span style="color:#0068CF;">http://ftp.squeak.org/2.8/</span></a><span style="color:#444444;"><br>[8]&nbsp;</span><a href="http://squeakbyexample.org/" target="_blank"><span style="color:#0068CF;">http://squeakbyexample.org/</span></a><span style="color:#444444;"><br>[9]&nbsp;</span><a href="http://lists.squeakfoundation.org/pipermail/vm-beginners" target="_blank"><span style="color:#0068CF;">http://lists.squeakfoundation.org/pipermail/vm-beginners</span></a><span style="color:#444444;"><br>[10]&nbsp;</span><a href="http://www.squeakland.org/" target="_blank"><span style="color:#0068CF;">http://www.squeakland.org/</span></a></span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#444444;">Courtesy of Chris&nbsp;Cunnington; when I said I need to understand Scratch (get about its source code) and how does it interface with the hardware.</span><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"></span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div></div></div><br></div></div>                                               </div></body>
</html>