[Cuis-dev] Keep method selected in ProtocolBrowser when selecting class

Bernhard Pieber bernhard at pieber.com
Mon May 20 02:41:24 PDT 2024


Hi Juan,

While I was learning about ProtocolBrowser anyway I tried to fix a minor nuisance I had with it: keeping the selected method selected when selecting a class. It turned out to be quite simple. I just had to remove selectedMessage := nil in #hierarchyForClass:.

I like it much better that way. It even works as intended if you select a class where the method is filtered away and back again to a class where it is included.

(I know this behaviour from VA Smalltalk and miss it in Cuis. I once tried to implement this in a hierarchy browser but failed.)

Related question: What was the idea behind #openSubProtocolForClass:? Other than having the label "Sub-protocol of:" the resulting browser seems to behave the same as a normal ProtocolBrowser? (Even with AllPackages loaded there no senders of #openSubProtocolForClass.)

Cheers,
Bernhard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6381-ProtocolBrowser-enh-BernhardPieber-2024May20-11h05m-bp.001.cs.st
Type: application/octet-stream
Size: 407 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240520/24bab7de/attachment.obj>


More information about the Cuis-dev mailing list