<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 23/06/2007, at 13:51, Wade Scholine wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">This is a question about the sample that was posted here last October, at<BR><BR>  <A href="http://lists.squeakfoundation.org/pipermail/beginners/2006-October/001238.html">http://lists.squeakfoundation.org/pipermail/beginners/2006-October/001238.html </A><BR><BR>I am not able to make it work. I was able to file in the code and start an instance from a workspace with 'SampleImageViewerMorph new.' I click on the 'dir' button in the upper left hand corner of the resulting Image Viewer Morph window, and that summons a directory browser UI that I can navigate to a directory that has jpgs in it. ( e.g., "C:\Documents and Settings\wades\My Documents\My Pictures\rocks5"). When I hit the 'accept' button in the directory browser, it goes away and the path to the directory I picked goes into the location bar or whatever you'd call it in the Image Viewer Morph window. A balloon comes up, saying 'When I'm populated, you can click on a file to load it.' Nothing happens. <BR><BR>If I try hitting the little '&gt;' button by the location bar on the Image View Morph window, I get an "error out of bounds." If I debug that, I see that the error happens in SampleImageLoader&gt;&gt;loadImage: it appears that the SampleImageLoader's collection members are empty. <BR><BR>I tried making an instance of SampleImageLoader from the workspace, thinking I could manually initialize it and load the image list. <BR><BR>a _ SampleImageLoader new.<BR>a inspect.<BR>(open a transcript)<BR>a loadImagesBelow: 'c:\stuff\rpics' <BR>The transcript shows "Entering DosFileDirectory on 'c:\stuff\rpics'" and then nothing else happens.<BR><BR>Should any of this work? <BR><BR>I am using:<BR><BR>Squeak3.9<BR>latest update: #7067<BR>Current Change Set: Unnamed1 <BR> OK <BR><BR><BR>On WinXP SP2.<BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Beginners mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</A></DIV> </BLOCKQUOTE><BR></DIV><DIV>I  file the code and could see is working.</DIV><DIV><BR class="khtml-block-placeholder"></DIV>SampleImageViewerMorph new on a Workspace<BR><DIV>Or select the class in the Sustem Browser and alt - click for "more" and then "sample instace"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Could be enhanced to read all the picts formats and not only jpg.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Hints:</DIV><DIV>Go to Utilities &gt;&gt; graphicsFileSuffixes.</DIV><DIV>Investigate "senders"</DIV><DIV>Have fun !</DIV></BODY></HTML>