[squeak-dev] Running process after image save/stop/restart
Ron Teitelbaum
ron at usmedrec.com
Fri Mar 1 00:59:33 UTC 2013
Hi Lou,
Yes see:
processStartUpList: resuming
"Send #startUp to each class that needs to run initialization
after a snapshot."
self send: #startUp: toClassesNamedIn: StartUpList with:
resuming.
If you need to send to instances then have the class side do it.
MyClass class >> startUp: resuming
"Send startUp to all my instances
self allInstnaces do: [:a | a startUp: resuming].
Or maybe,
"send startUp to my default instance"
Default ifNotNil: [Default startUp: resuming].
Hope that helps.
All the best,
Ron Teitelbaum
Head Of Engineering
3d Immersive Collaboration Consulting
ron at 3dicc.com
Follow Me On Twitter: @RonTeitelbaum <https://twitter.com/RonTeitelbaum>
www.3dicc.com <http://www.3dicc.com/>
3d ICC on G+
<https://plus.google.com/u/0/b/108936249366287171125/108936249366287171125/p
osts>
> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org [mailto:squeak-dev-
> bounces at lists.squeakfoundation.org] On Behalf Of Louis LaBrunda
> Sent: Thursday, February 28, 2013 6:37 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: [squeak-dev] Running process after image save/stop/restart
>
> Hi Ron,
>
> Thanks for the help.
>
> >Then you just need to implement the #startUp method on your class to
> >handle refreshing the date.
>
> Is #startUp a class side method? When I try to save it, I get an ominous
warning
> message.
>
> Lou
> -----------------------------------------------------------
> Louis LaBrunda
> Keystone Software Corp.
> SkypeMe <callto://PhotonDemon> callto://PhotonDemon
> <mailto:Lou at Keystone-Software.com> mailto:Lou at Keystone-Software.com
<http://www.Keystone-Software.com> http://www.Keystone-Software.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130228/8274bfd5/attachment-0001.htm
More information about the Squeak-dev
mailing list
|