2010/3/25 Mariano Martinez Peck <[email protected]>:
>
>> >
>> > World submorphs reject:  [:m | m == LogoImageMorph default ]  thenDo:
>> > [:each
>> > | each delete]
>> >
>> > (remove all World submorphs but the Pharo logo)
>> >
>> > The first question is, do you like the idea?  should I add it ?
>> >
>> I thinking of even more radical process - replace the World instance
>> alltogether,
>> and then recreate all default things from scratch (logo, tabs etc).
>> So, then old World instance and all its submorphs will be GCed.. and
>> you don't have to
>> delete anything. The panic, as i understand, is not where you
>> interested whether you having something unsaved or not
>> - it should reset UI unconditionally, and in this way, leaving minimal
>> chances that you will still be plagued by some inconsistency after
>> reset.
>
> Igor: that's sound even better that I was saying :)
> now...do you know more or less how can I do that  ? I have no idea/clues
>

Start from:

ActiveWorld := World := PasteUpMorph newWorldForProject: nil.

and see where it goes :)

I tried above in my working image (which is a trunk derivative) and it
worked ok. Not sure about pharo, but i think it should work ok in it
as well.

Probably, you should also recreate a UI process (to get rid of tons of
stack frames pointing to old World /Hand/Sensor etc).


> Thanks!
>
> Mariano
>
>
>>
>> > The second is, how can I delete a SystemWindows that has been being
>> > edited
>> > without saving ?  because right now, the popup raises saying "Changes
>> > has
>> > not been saved....".
>> > I want to delete them without asking. I have no idea how to do this.
>> > Help ?
>> > maybe there is a preference or notifier that I can turn of before the
>> > execution and then put it back ?   I searched in Morph to see if there
>> > is a
>> > deleteWithoutAsking or similar but I didn't find anything.
>> >
>>
>>
>>
>> > Thanks
>> >
>> > Mariano
>> >
>> >
>> >
>> > _______________________________________________
>> > Pharo-project mailing list
>> > [email protected]
>> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko AKA sig.
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to