How to select a GIF file?

Dan Ingalls Dan.Ingalls at disney.com
Fri May 28 15:20:53 UTC 1999


>I'm working on an app where I want a browser to select
>a GIF file.  I'd like  some advice and pointers to examples
>to look at.  This is with Squeak 2.4 on Linux.
>
>I'm likely to have a number of beginner questions.  Is this
>the best for forum for them?

Probably so.

A good start would be to look at what the FileList does to support the
'open image in a window' option, which you will find in...

-------------------
<FileList>openImageInWindow
	"Handle four file formats: GIF, JPG, Form stoteOn: (run coded), and BMP.
	Fail if file format is not recognized."
	| image |
	image _ Form fromFileNamed: self fullName.
	World
		ifNil: [FormView open: image named: fileName]
		ifNotNil: [World addMorph: (SketchMorph new form: image)].
-------------------





More information about the Squeak-dev mailing list