logo       

Re: SampleCode-ImageViewer: msg#00104

Subject: Re: SampleCode-ImageViewer

------------------------------

Message: 7
Date: Sat, 23 Jun 2007 15:19:43 -0300
From: Edgar J De Cleene <edgardec2005@xxxxxxxxx>
Subject: Re: [Newbies] SampleCode-ImageViewer
To: "A friendly place to get answers to even the most basic questions
        about   Squeak." <beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <149A61FD-CC76-40EF-8934-F16149CEDC28@xxxxxxxxx >
Content-Type: text/plain; charset="us-ascii"


On 23/06/2007, at 13:51, Wade Scholine wrote:

> This is a question about the sample that was posted here last
> October, at
>
>   http://lists.squeakfoundation.org/pipermail/beginners/2006-
> October/001238.html
>
> 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.
>
> If I try hitting the little '>' 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>>loadImage:
> it appears that the SampleImageLoader's collection members are empty.
>
> I tried making an instance of SampleImageLoader from the workspace,
> thinking I could manually initialize it and load the image list.
>
> a _ SampleImageLoader new.
> a inspect.
> (open a transcript)
> a loadImagesBelow: 'c:\stuff\rpics'
> The transcript shows "Entering DosFileDirectory on 'c:\stuff
> \rpics'" and then nothing else happens.
>
> Should any of this work?
>
> I am using:
>
> Squeak3.9
> latest update: #7067
> Current Change Set: Unnamed1
>  OK
>
>
> On WinXP SP2.
> _______________________________________________
> Beginners mailing list
> Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

I  file the code and could see is working.

SampleImageViewerMorph new on a Workspace
Or select the class in the Sustem Browser and alt - click for "more"
and then "sample instace"

Could be enhanced to read all the picts formats and not only jpg.

Hints:
Go to Utilities >> graphicsFileSuffixes.
Investigate "senders"
Have fun !

I got SampleImageLoader's loadImagesBelow working: the problem was that it was trying to match files ending with .jpg or .jpeg, but my files had .JPG.

I still am having problems with the package though. It appears that the SampleImageLoader is not getting hooked up with the Model correctly.

Are you using 3.9?

_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe