[Cuis-dev] Show Morphs halos from object explorer

Mariano Montone marianomontone at gmail.com
Tue Jun 29 07:58:27 PDT 2021


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


More information about the Cuis-dev mailing list