Add a world:
WorldManager instance createOrSwitchToWorldNamed: 'JustAnotherWorld'.
Return to the default world:
WorldManager instance createOrSwitchToWorldNamed: 'Pharo'.
This may need to be cleaned up e.g. should worlds be named, or numbered
(like Mac Spaces)? Either way, maybe that attribute (or both) should be
encapsulated in PasteUpMorph. But it's working, so we might as well play
Also, there were methods with no senders in the image
#switchToWorldNamed:, switchToWorldNamed:ifAbsent:, #worlds). I'm not sure
if these methods were intended to be part of a user API or if they should
I would like to see that integrated - similar to a desktop switcher.
Would be nice to have a morph added to the bottom bar so one can easily
switch between worlds or at least a world menu entry since switching by
evaluating an expression is ... cumbersome.
Relationship to Project:
* all the flexibility of multiple worlds (except there is no UI for now,
maybe later we add a menu option, thumbnails, whatever
* none of the complexity / issues
* Changes to PasteUpMorph
# methods added: 2
# lines per method: 5.5
# lines of longest method: 7
* 1 Class added: WorldManager
# methods: 10
# lines per method: 2.3
# lines of longest method: 7
# methods with no senders: 5 <-- maybe we should remove these, but I
wasn't sure what Jochen's intention was and wanted to hear from him before
I removed them. Maybe some/all are intended as an API?
- one single-line class method to access singleton
* should worlds be named, or numbered (like Mac Spaces), or both? Either
way, maybe that attribute (or both) should be encapsulated in
PasteUpMorph. But it's working, so we might as well play with it.
* should methods with no senders (WorldManager>>switchToWorldNamed:,
#createWorldNamed:, #switchToWorldNamed:, switchToWorldNamed:ifAbsent:,
#worlds) be removed.
On Wed, Jan 19, 2011 at 12:59 PM, Stéphane Ducasse
<[hidden email]> wrote:
> Romain robbes implemented a mac like expose in squeak a while ago.
> I do not remember the name of the project.
> On Jan 19, 2011, at 11:45 AM, Sean P. DeNigris wrote:
>> Does anyone have a great example of a multiple desktop switching UI
>> (something like Mac Spaces)? I might take a hack at creating one for Pharo
>> on top of this API and I'm looking for inspiration.
>> View this message in context: http://forum.world.st/Issue-3545-in-pharo-FEATURE-Multiple-Worlds-tp3222698p3224992.html >> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
One of the nice things about EToys Projects was the option to swap
Projects to disk, which (I think) meant that only the current Project
was loaded into memory. Can this be done with Multiple Worlds in
Pharo, too (to save memory)?
Actually, since I'm not a seasoned Smalltalker, I don't even know if
memory is an issue with Multiple Worlds. Is it?
Multiple worlds is a piece of functionality that I missed from Squeak, and
pushed to get back. It doesn't do any of the other things that projects do.
Although, Pharo seems to be open to any code that is clean, especially if
well-documented and tested, so if you miss some other feature, code up a
prototype and get people excited about it :)