[ANN] [ENH] FillInTheBlankMorph Look

diegogomezdeck at consultar.com diegogomezdeck at consultar.com
Wed Apr 30 19:56:23 UTC 2003


Hi Tim and Stef,

> Stephane Ducasse <ducasse at iam.unibe.ch> wrote:
>
>> The problem is that while you will be doing that you will be linking
>> Morph to classes that would not rely on morph but just DisplayScreen.
> Actually Diego would be simply maintaining the current system rather
> than changing it; though it wuld look a lot nicer after his work!

You are rigth. I'll change only the look of the existing system.

>> I would not do this change. I imagine that we should find a much
>> clever  way of notifying user. Avi suggested to me that we could have
>> exception  that would be caught
>> and letting the used decide if he wants to put a UI or not for
>> headless  image for examples.
> So far as I can tell to seems that the mechanism I suggested for the
> filing out of pooldicts stuff would work quite reasonably. I still want
> someone to suggest a better name than  'UIDefaultYesNotification'
> though! A more carefully thought out way to include some information
> with the exception would be useful; my hack just (ab)uses the
> messageText. Did anyone have any thoughts on the changeset I proposed
> (called FileOutUIRemove.1.cs) ?
>
> The key item to separate progress notification from needing the UI
> classes is to change the defaultAction to do nothing rather than
> display the progress bar (well, modulo the stuff to make sure the block
> runs etc). Then one has to find all the place where the exception could
> need to be handled (which is actually pretty tricky and tedious - tools
> would be good here) and handle it the right way.

This solution is ok for me only if we need to hock diferents handlers in
the same context.

On the other side, if we want to change the "notifiers" only per image (or
per project) a global named Notifier (or something like that) holding an
implementation of AbstractNofifier (MorphicNotifier, MVCNotifier,
StOutNotifier, etc) is enough and more clear to see.

These notifier classes will answer to #notify:, #confirm:,
#confirm:options:, etc type of messages.

> tim

Cheers,

Diego Gomez Deck





More information about the Squeak-dev mailing list