[Newbies] isStepping question
cwdw01 at earthlink.net
Sat Nov 7 16:01:54 UTC 2009
Thank you so much for the explanation. I will keep that philosophy in mind
as I try to figure out other techniques as well.
From: beginners-bounces at lists.squeakfoundation.org
[mailto:beginners-bounces at lists.squeakfoundation.org] On Behalf Of Bert
Sent: Saturday, November 07, 2009 10:40 AM
To: A friendly place to get answers to even the most basic questions about
Subject: Re: [Newbies] isStepping question
On 07.11.2009, at 14:45, Christine Wolfe wrote:
> Wow! That worked. But I'm sorry to hear that morph doesn't support
> a loop
> like I wanted. That sounds restrictive but maybe I just need more
> time in
> world to become squeakified.
Actually that's a restriction of about any event-driven GUI. Your code
must not wait until some event occurs because the other UI elements
would be blocked by that. Everything (e.g. event handling, animation,
painting) is done in call-back methods, the main loop calls your code
which must return ASAP.
The only way around that is by using background processes, which is
possible in Squeak of course, but usually introduces many more
problems than it solves. Better adhere to the standard practices,
which is do-one-thing-and-return.
- Bert -
Beginners mailing list
Beginners at lists.squeakfoundation.org
More information about the Beginners