variables declared in workspaces

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

variables declared in workspaces

gruntfuttuck
Hi,
I added this code to a workspace:

oneMinBeeper := TaskScheduler new.
oneMinBeeper do: [Beeper beep]  every: 1 minute.
oneMinBeeper start.

I then deleated the the workspace thinking that it would take the oneMinBeeper object with it. exactly one minute later I realized that's not how it works! How do I now access this object? How can I kill it.

Also some general info where objects live would be useful. I notice that if I open up another workspace and inspect oneMinBeeper, that it's referred to an undefined object but it must be defined somewhare as it's still beeping.

Cheers
Reply | Threaded
Open this post in threaded view
|

Re: variables declared in workspaces

Bert Freudenberg
On Nov 9, 2007, at 22:07 , gruntfuttuck wrote:

>
> Hi,
> I added this code to a workspace:
>
> oneMinBeeper := TaskScheduler new.
> oneMinBeeper do: [Beeper beep]  every: 1 minute.
> oneMinBeeper start.
>
> I then deleated the the workspace thinking that it would take the
> oneMinBeeper object with it. exactly one minute later I realized  
> that's not
> how it works! How do I now access this object? How can I kill it.
>

Try inspecting "TaskScheduler allInstances".

> Also some general info where objects live would be useful. I notice  
> that if
> I open up another workspace and inspect oneMinBeeper, that it's  
> referred to
> an undefined object but it must be defined somewhare as it's still  
> beeping.

If it actually forked a process then it is in the process list. Use  
the Process Browser to see it.

- Bert -


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: variables declared in workspaces

gruntfuttuck
Thank you Bert, it was a forked process. I killed it from the Process Browser.

-Darren

Bert Freudenberg wrote
On Nov 9, 2007, at 22:07 , gruntfuttuck wrote:

>
> Hi,
> I added this code to a workspace:
>
> oneMinBeeper := TaskScheduler new.
> oneMinBeeper do: [Beeper beep]  every: 1 minute.
> oneMinBeeper start.
>
> I then deleated the the workspace thinking that it would take the
> oneMinBeeper object with it. exactly one minute later I realized  
> that's not
> how it works! How do I now access this object? How can I kill it.
>

Try inspecting "TaskScheduler allInstances".

> Also some general info where objects live would be useful. I notice  
> that if
> I open up another workspace and inspect oneMinBeeper, that it's  
> referred to
> an undefined object but it must be defined somewhare as it's still  
> beeping.

If it actually forked a process then it is in the process list. Use  
the Process Browser to see it.

- Bert -


_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners