WorldState

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

WorldState

Jerry Bell-3
Hello,

Inspecting World, I see it is a PasteUpMorph, and its worldState iVar
is a WorldState instance.

Where does this happen?  I cannot find anywhere in PasteUpMorph where
worldState is set.  Am I missing something?

Thanks!

Jerry

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: WorldState

Hannes Hirzel
Maybe a left over from Morphic cleanup. The instance is preset manually...

However I would like to have different desktops in Cuis as well.

See Sean deNigris blog entry
http://seandenigris.com/blog/?p=767

and taken on by Laurent Laffont in his TilingWindowManager
http://magaloma.blogspot.fr/2011/05/tiling-window-manager.html

actually the code is only one class and 4 additional methods in PasteUpMorph

--Hannes

On 9/17/12, Jerry Bell <[hidden email]> wrote:

> Hello,
>
> Inspecting World, I see it is a PasteUpMorph, and its worldState iVar
> is a WorldState instance.
>
> Where does this happen?  I cannot find anywhere in PasteUpMorph where
> worldState is set.  Am I missing something?
>
> Thanks!
>
> Jerry
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: WorldState

Juan Vuletich-4
In reply to this post by Jerry Bell-3
Hi Jerry,

Jerry Bell wrote:

> Hello,
>
> Inspecting World, I see it is a PasteUpMorph, and its worldState iVar
> is a WorldState instance.
>
> Where does this happen?  I cannot find anywhere in PasteUpMorph where
> worldState is set.  Am I missing something?
>
> Thanks!
>
> Jerry

The code for creating new worlds is not currently there. But it is not
too hard to add. Just create new instances that look like the current
ones, and set globals ActiveWorld and World. Then you need to make your
new world run. The usual way is via #spawnNewProcessX. If you have
several worlds at the same time, the way to switch between them is to
suspend the process of the active world, and resume the process of the
world you jump into, and update the globals. Also do 'Display restore'.

If you come up with code that might be useful for others, or for
integrating into Cuis, please send it to this list.

Cheers,
Juan Vuletich

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org