[squeak-dev] ProvideAnswerNotification and UIManager

patrick.rein at hpi.uni-potsdam.de patrick.rein at hpi.uni-potsdam.de
Thu Oct 18 16:56:28 UTC 2018


Hi everyone,

some of you might remember that I proposed a changeset for refactoring the signaling and handling of ProvideAnswerNotification (ProvideAnswerNotification and UIManager ( http://forum.world.st/ProvideAnswerNotification-and-UIManager-td5081488.html) and original text below). David already looked at it briefly and I would like to merge the changes in the near future (before it gets lost), so I would like to ask for other opinions before adding it. :)

Bests
Patrick

Hi everyone,

recently I noticed that the method BlockClosure>>valueSupplyingAnswer: (and related ones) do 
not work on all method of UIManager. When I looked into the issue I noticed that the signaling of
ProvideAnswerNotification is not done in the UIManagers but in the classes implementing the 
actual user interfaces for the corresponding queries (e.g. MenuMorph and PopUpMenu). This 
scattered the ProvideAnswerNotification logic throughout different packages and classes and 
might have lead to the oversights.

The attached changeset is a refactoring of this mechanism which moves the corresponding
logic into the UIManagers. Unfortunately, this required some code duplication but at least it is
contained with the UIManager. On the plus side the code is contained in the UIManagers and
all methods should be covered now.

As I am not very familiar with the original intend and responsibilities of the UIManagers I wanted
to ask whether anyone has any thoughts on that change.

Thanks and bests
Patrick
["ProvideAnswerNotification.2.cs"]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ProvideAnswerNotification.2.cs
Type: application/octet-stream
Size: 34626 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20181018/cd6f069d/attachment.obj>


More information about the Squeak-dev mailing list