Writing an application in squeak?
Raab, Andreas
Andreas.Raab at disney.com
Mon Aug 28 00:43:36 UTC 2000
Just FYI: If you're on Windows you can just put image and VM in the same
directory. Once you start the VM, it will automatically launch the image if
there's *exactly* one. If not it will give you a file open dialog asking for
the image file to use.
- Andreas
> -----Original Message-----
> From: Peter Crowther [mailto:peter at crowther.demon.co.uk]
> Sent: Sunday, August 27, 2000 1:49 PM
> To: squeak at cs.uiuc.edu
> Cc: recipient list not shown
> Subject: RE: Writing an application in squeak?
>
>
> > Jerome Chan <eviltofu at earthlink.net> wrote:
> > > How does one go about writing an application for squeak say under
> > > windows/macos/unix that is double clickable like a conventional
> > > application?
>
> > From: Bruce ONeel [mailto:beoneel at mindspring.com]
> > I don't know enough about windows to say anything beyond it
> > should be possible, but I don't know how.
>
> The easiest way is simply to create an association between
> the .image suffix
> and the Squeak VM. Precisely how this is done in the GUI
> varies by platform
> (as usual with MS), but look under Options or Folder Options
> in Explorer,
> pick the File Types tab, and add .image as a suffix. Works a treat.
>
> The harder way is to poke the appropriate part of the
> registry to do this in
> an automated fashion. I attach a .reg file that will set up .image,
> .changes and .sources and associate them with C:\Program
> Files\Squeak\Squeak.exe. I don't guarantee that the icon
> offsets will stay
> the same between VM versions, but this should give you some
> idea of how to
> write the appropriate registry entries (and if you're writing
> an app you'll
> probably want to distribute your own icons anyway). Created
> on Windows 2000
> Server, hand-tweaked to canonise(?!) the brain-damaged Windows 2000
> auto-created sequence numbers that aren't portable between
> machines, and
> saved in REGEDIT4 format so any 32-bit Windoze system should
> cope with it.
>
> Health warning: DO NOT RUN THIS REGISTRY FILE IF YOU ALREADY HAVE
> ASSOCIATIONS FOR .IMAGE, .CHANGES OR .SOURCES AS THIS FILE
> WILL REPLACE
> THEM! Sold as seen. Your mileage may vary. May cause
> cancer in rats, and
> quite possibly in Windows computers as well. EC residents
> please add 17.5%
> VAT.
>
> This .reg file is contributed under the terms of Squeak-L.
> Enjoy! [Andrew,
> is this a good enough clause? If not, what should I put?]
>
> - Peter
>
More information about the Squeak-dev
mailing list
|