[squeak-dev] TheWorldMainDockingBar instance

Hannes Hirzel hannes.hirzel at gmail.com
Mon Nov 8 14:51:08 UTC 2010


The first answer which comes to mind is to associate it with
MorphicProject. So each project can have a particular menu.

If we associate it with PasteUpMorph we might have a docking bar menu
within SystemWindows. Normally we put a PasteUpMorph into a system
window.

For a first iteration though I think MorphicProject is fine.

On 11/7/10, Chris Muller <asqueaker at gmail.com> wrote:
> Should the docking bar be associated with MorphicProject or a PasteUpMorph?
>
> On Sat, Nov 6, 2010 at 12:48 AM, Hannes Hirzel <hannes.hirzel at gmail.com>
> wrote:
>> Hello
>>
>> The TheWorldMainDockingBar is implemented as a Singleton.
>>
>> To access the sole instance the method #instance is used. But we have
>> 35 implementor of #default and 20 implementors of #current for
>> implementing Singletons.
>>
>> Could somebody please change this the next time?
>>
>> And TheWorldMainDockingBar is hard coded 5 places
>>
>> One thing we could do is to add the method
>>
>> mainDockingBarClass
>>        ^TheWorldMainDockingBar
>>
>> to MorphicProject
>>
>> and then replace the hard coded
>>
>> TheWorldMainDockingBar
>>
>> with
>>
>> MorphicProject current mainDockingBarClass
>>
>>
>> This is still hard coded but now offers the option that if I subclass
>> MorphicProject I can have another menu there.
>>
>> What do you think?
>>
>> Hannes
>>
>>
>
>



More information about the Squeak-dev mailing list