Can I know when #startUp is happening for the first time?
Rob Withers
reefedjib at yahoo.com
Tue Nov 20 15:49:48 UTC 2007
Ah hah! I was using the message without the parameter, so I couldn't tell.
Now I see it is actually #startUp: that is sent. Thanks, Jon!
Cheers,
Rob
----- Original Message -----
From: "Jon Hylands" <jon at huv.com>
To: "The general-purpose Squeak developers list"
<squeak-dev at lists.squeakfoundation.org>
Sent: Tuesday, November 20, 2007 7:36 AM
Subject: Re: Can I know when #startUp is happening for the first time?
On Tue, 20 Nov 2007 07:29:51 -0800, "Rob Withers" <reefedjib at yahoo.com>
wrote:
> I am having a bunch of network issues with my servers (every image is a
> server) and I need to bounce the connHandler when I startup the first
> time.
> Is there a way to know it is the first time and not just another image
> save?
The argument to the #startUp: method is a boolean, which tells you whether
it is an image save or a fresh start... The name of the argument is
misleading, however. Most methods call it 'resuming', but how it works is
it is false on an image save, and true on an image start...
Later,
Jon
--------------------------------------------------------------
Jon Hylands Jon at huv.com http://www.huv.com/jon
Project: Micro Raptor (Small Biped Velociraptor Robot)
http://www.huv.com/blog
More information about the Squeak-dev
mailing list
|