[Q] Morphic - multiple processes

Ned Konz ned at bike-nomad.com
Mon Nov 17 16:37:31 UTC 2003


On Sunday 16 November 2003 9:15 pm, Chris Muller wrote:
> Can background processes update morph trees?

Not directly, no.

>  While adding 100 morphs to a
> list on the screen (and setScrollDeltas of its ScrollPane) using a
> background process I sometimes get an image crash.
>
> This makes sense if the work for background process is conflicting with the
> UI process, but I couldn't tell whether there is a safe way to do it.
>
> Is there?

Yes.

	WorldState addDeferredUIMessage: [ someMorph doSomething ]

This queues up things that respond to #value and evaluates them at the top of 
the Morphic loop.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list