[Cuis-dev] Show Morphs halos from object explorer
Juan Vuletich
juan at jvuletich.org
Tue Jun 29 08:19:39 PDT 2021
On 6/29/2021 11:58 AM, Mariano Montone via Cuis-dev wrote:
> El 29/6/21 a las 11:54, Juan Vuletich via Cuis-dev escribió:
>>> Even better than that would be to let the current selected model
>>> participate in the building of the explorer menu, but I guess that would
>>> be another story.
>> Yes. That is a good idea. I guess that Object could answer #() to
>> something like #inspectorMenuOptions, and each class could add its own.
>> This should be used both for inspectors and explorers, and integrated in
>> #fieldListMenu , including what currently is at
>> #addItemsFromDictionaries: , #suggestObjectSpecificMenuItemsFor: , etc.
> Yeah. Perhaps less intrusive could be to implement using #respondsTo:,
> so that Object protocol doesn't need to be touched.
>
> Like this:
>
> (model respondsTo: #someMenuBuilder:) ifTrue: [
> model someMenuBuilder: myMenu].
>
> Cheers,
>
> Mariano
I prefer to avoid calling things like #respondsTo: or #isKindOf: if
possible. I think in this case, like #inspectorClass, adding to Object
is reasonable.
Cheers,
--
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich
More information about the Cuis-dev
mailing list