Re: Bloc Space within a Space
Posted by
stepharo on
Feb 14, 2016; 8:23pm
URL: https://forum.world.st/Bloc-Space-within-a-Space-tp4877474p4877500.html
But I thought that space/universe was done so that we could build
multidesktop with
mini space to select where to jump and we can imagine that such mini
space would be
running.
So what sean wants to do should be possible. At least I thought that
alain planed it.
stef
Le 14/2/16 16:51, Aliaksei Syrel a
écrit :
I'm not sure I understand what you want to archive
with provided code :)
Space is not something you want to embed in another space.
Space manages UI thread, event fetching, alarms and many other
low level stuff. Universe contains spaces and there can be
only one running space at a time - read there can be only one
active UI thread and event fetcher in the system.
Check Bloc-Core-Universe. Alain put a lot of effort writing
class docs.
Please, could you explain in more detail your idea and
provide some examples where embedding of spaces could be
applicable?
This makes real testing possible,
prevents another global
mess, and makes other
/really/ exciting possibilities within reach
Why?
You can create a separate 'Bloc-Test' space and do testing
there.
testSpace
:= BlUniverse default defaultSpaceClass new identifiedBy:
'Bloc-Test'.
BlUniverse default addNewSpace: testSpace.
BlUniverse default switchToSpace: testSpace.