Images
Ben Schroeder
bschroeder at procro.com
Fri Sep 3 15:55:50 UTC 2004
Hi Damien,
> I've tried this code :
>
> (HTTPSocket httpShowGif:
> 'http://www.google.fr/intl/fr_fr/images/logo.gif')
> display
It looks like #httpShowGif: displays the image without needing anything
further. It then returns a reference to the HTTPSocket class. This is by
convention: if a Squeak method doesn't return anything specific, it returns
the receiver.
HTTPSocket class doesn't implement #display, so that's what is causing the
error - but in this case, there's no need to send another message, since
#httpShowGif: does the showing by itself.
Hope this helps,
Ben Schroeder
More information about the Squeak-dev
mailing list
|