Hi!
There is within Squeak some way for perfoming some operation at start-time. Here is a
short example:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Object subclass: #MyGreatLauncher
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'MyGreatLauncher'
AutoStart addLauncher: MyGreatLauncher
MyGreatLauncher compile: 'parameters: aDictionary Transcript show: aDictionary
printString; cr'.
MyGreatLauncher compile: 'startUp Transcript show: ''I am launched from
startup!!!!'''.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Execute line by line, then save the image. But be careful, when I tested it, it seems the
startUp method is called twice...
Cheers,
Alexandre
On Sat, Feb 07, 2004 at 10:41:40PM +0100, Lukas Renggli wrote:
I discussed
with a guy that told me that installing
swiki was one click :) and ask me what was the status
of that for SmallWiki. So I would like to know what
we could do to have a simple distribution with one
click ready to use image.
Actually this would be fairly simple to do, but I still had no time to
implement that the web-server starts-up automatically when opening the
window. I'm still looking for the best way to get a notification when
the image is started or stopped, there is no such obvious thing as I
know from Squeak. Probably someone on this list can point me into the
right direction, else I'll ask in the vwnc-mailing-list.
I'm not talking about producing an exe (even
if sander
is doing some experiment for moose and Codecrawler in
this moment).
For OS X creating one executable file with everything in it is very
simple, but for other os it isn't that easy.
Lukas
--
Lukas Renggli
http://renggli.freezope.org
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.