worldMenu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

worldMenu

Stéphane Ducasse


in 1.0

PasteUpMorph>>worldMenu
        ^ TheWorldMenu new adaptToWorld: self

was defined as service extension

in 1.1 services have been removed

Now HostSystemMenusMacOSX
uses the following pattern


...
 self buildSubMenusFor: World worldMenu openMenu.
...

We could either reintroduce

        PasteUpMorph>>worldMenu
or
        in HostSystemMenusMac

Does anybody have some criteria to differentiate the two places?

Stef

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: worldMenu

Francisco Ortiz Peñaloza
imho i don't think that PasteUpMorph should undestand #worldMenu...
but i dont see clearly the best place to put it.

I'm aware that there are more messages like this one in PasteUpMorph
like #adaptedWorld or #getWorldMenu: but i think that PasteUpMorph and
World belong to a different levels of abstraction.

Francisco

On Mon, Jan 18, 2010 at 5:15 AM, Stéphane Ducasse
<[hidden email]> wrote:

>
>
> in 1.0
>
> PasteUpMorph>>worldMenu
>        ^ TheWorldMenu new adaptToWorld: self
>
> was defined as service extension
>
> in 1.1 services have been removed
>
> Now HostSystemMenusMacOSX
> uses the following pattern
>
>
> ...
>  self buildSubMenusFor: World worldMenu openMenu.
> ...
>
> We could either reintroduce
>
>        PasteUpMorph>>worldMenu
> or
>        in HostSystemMenusMac
>
> Does anybody have some criteria to differentiate the two places?
>
> Stef
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: worldMenu

Stéphane Ducasse
the World is an instance of PasteUpMorph

On Jan 18, 2010, at 4:03 PM, Francisco Ortiz Peñaloza wrote:

> imho i don't think that PasteUpMorph should undestand #worldMenu...
> but i dont see clearly the best place to put it.
>
> I'm aware that there are more messages like this one in PasteUpMorph
> like #adaptedWorld or #getWorldMenu: but i think that PasteUpMorph and
> World belong to a different levels of abstraction.
>
> Francisco
>
> On Mon, Jan 18, 2010 at 5:15 AM, Stéphane Ducasse
> <[hidden email]> wrote:
>>
>>
>> in 1.0
>>
>> PasteUpMorph>>worldMenu
>>        ^ TheWorldMenu new adaptToWorld: self
>>
>> was defined as service extension
>>
>> in 1.1 services have been removed
>>
>> Now HostSystemMenusMacOSX
>> uses the following pattern
>>
>>
>> ...
>>  self buildSubMenusFor: World worldMenu openMenu.
>> ...
>>
>> We could either reintroduce
>>
>>        PasteUpMorph>>worldMenu
>> or
>>        in HostSystemMenusMac
>>
>> Does anybody have some criteria to differentiate the two places?
>>
>> Stef
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: worldMenu

Francisco Ortiz Peñaloza
i know but not every PasteUpMorph has to be the World...

from PasteUpMorph comments
"A morph whose submorphs comprise a paste-up of rectangular subparts
which "show through".  Anything called a 'Playfield' is a
PasteUpMorph."

i'm just saying that anything related to the world concept
semantically doesnt belong to what i understand for PasteUpMorph.

Francisco

On Mon, Jan 18, 2010 at 12:13 PM, Stéphane Ducasse
<[hidden email]> wrote:

> the World is an instance of PasteUpMorph
>
> On Jan 18, 2010, at 4:03 PM, Francisco Ortiz Peñaloza wrote:
>
>> imho i don't think that PasteUpMorph should undestand #worldMenu...
>> but i dont see clearly the best place to put it.
>>
>> I'm aware that there are more messages like this one in PasteUpMorph
>> like #adaptedWorld or #getWorldMenu: but i think that PasteUpMorph and
>> World belong to a different levels of abstraction.
>>
>> Francisco
>>
>> On Mon, Jan 18, 2010 at 5:15 AM, Stéphane Ducasse
>> <[hidden email]> wrote:
>>>
>>>
>>> in 1.0
>>>
>>> PasteUpMorph>>worldMenu
>>>        ^ TheWorldMenu new adaptToWorld: self
>>>
>>> was defined as service extension
>>>
>>> in 1.1 services have been removed
>>>
>>> Now HostSystemMenusMacOSX
>>> uses the following pattern
>>>
>>>
>>> ...
>>>  self buildSubMenusFor: World worldMenu openMenu.
>>> ...
>>>
>>> We could either reintroduce
>>>
>>>        PasteUpMorph>>worldMenu
>>> or
>>>        in HostSystemMenusMac
>>>
>>> Does anybody have some criteria to differentiate the two places?
>>>
>>> Stef
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: worldMenu

Stéphane Ducasse

On Jan 18, 2010, at 4:34 PM, Francisco Ortiz Peñaloza wrote:

> i know but not every PasteUpMorph has to be the World...
>
> from PasteUpMorph comments
> "A morph whose submorphs comprise a paste-up of rectangular subparts
> which "show through".  Anything called a 'Playfield' is a
> PasteUpMorph."
>
> i'm just saying that anything related to the world concept
> semantically doesnt belong to what i understand for PasteUpMorph.


I do not understand PasteUpMorph (no pun intended).
Seems to me that it was playing too many roles (I happy that we removed a couple of tenth of methods from it).

Stef
>>>>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: worldMenu

Francisco Ortiz Peñaloza
I totally agree! Another thought is that there isn't currently other
use cases for a PasteUpMorph besides World.

I would love to have a simple solution or a solution at all rather
than my just my opinion.

Best Regards,
Francisco

On Mon, Jan 18, 2010 at 6:57 PM, Stéphane Ducasse
<[hidden email]> wrote:

>
> On Jan 18, 2010, at 4:34 PM, Francisco Ortiz Peñaloza wrote:
>
>> i know but not every PasteUpMorph has to be the World...
>>
>> from PasteUpMorph comments
>> "A morph whose submorphs comprise a paste-up of rectangular subparts
>> which "show through".  Anything called a 'Playfield' is a
>> PasteUpMorph."
>>
>> i'm just saying that anything related to the world concept
>> semantically doesnt belong to what i understand for PasteUpMorph.
>
>
> I do not understand PasteUpMorph (no pun intended).
> Seems to me that it was playing too many roles (I happy that we removed a couple of tenth of methods from it).
>
> Stef
>>>>>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: worldMenu

Fernando olivero
what about a PasteUp behavior as a Trait?

That could be attached to any morph that wants PasteUp behavior.

Fernando

On Jan 19, 2010, at 1:57 AM, Francisco Ortiz Peñaloza wrote:

> I totally agree! Another thought is that there isn't currently other
> use cases for a PasteUpMorph besides World.
>
> I would love to have a simple solution or a solution at all rather
> than my just my opinion.
>
> Best Regards,
> Francisco
>
> On Mon, Jan 18, 2010 at 6:57 PM, Stéphane Ducasse
> <[hidden email]> wrote:
>>
>> On Jan 18, 2010, at 4:34 PM, Francisco Ortiz Peñaloza wrote:
>>
>>> i know but not every PasteUpMorph has to be the World...
>>>
>>> from PasteUpMorph comments
>>> "A morph whose submorphs comprise a paste-up of rectangular subparts
>>> which "show through".  Anything called a 'Playfield' is a
>>> PasteUpMorph."
>>>
>>> i'm just saying that anything related to the world concept
>>> semantically doesnt belong to what i understand for PasteUpMorph.
>>
>>
>> I do not understand PasteUpMorph (no pun intended).
>> Seems to me that it was playing too many roles (I happy that we removed a couple of tenth of methods from it).
>>
>> Stef
>>>>>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: worldMenu

Stéphane Ducasse
would be lovely
What I would love to have and I failed trying is to have a trait based morphic.

Stef

On Jan 19, 2010, at 12:30 PM, Fernando olivero wrote:

> what about a PasteUp behavior as a Trait?
>
> That could be attached to any morph that wants PasteUp behavior.
>
> Fernando
>
> On Jan 19, 2010, at 1:57 AM, Francisco Ortiz Peñaloza wrote:
>
>> I totally agree! Another thought is that there isn't currently other
>> use cases for a PasteUpMorph besides World.
>>
>> I would love to have a simple solution or a solution at all rather
>> than my just my opinion.
>>
>> Best Regards,
>> Francisco
>>
>> On Mon, Jan 18, 2010 at 6:57 PM, Stéphane Ducasse
>> <[hidden email]> wrote:
>>>
>>> On Jan 18, 2010, at 4:34 PM, Francisco Ortiz Peñaloza wrote:
>>>
>>>> i know but not every PasteUpMorph has to be the World...
>>>>
>>>> from PasteUpMorph comments
>>>> "A morph whose submorphs comprise a paste-up of rectangular subparts
>>>> which "show through".  Anything called a 'Playfield' is a
>>>> PasteUpMorph."
>>>>
>>>> i'm just saying that anything related to the world concept
>>>> semantically doesnt belong to what i understand for PasteUpMorph.
>>>
>>>
>>> I do not understand PasteUpMorph (no pun intended).
>>> Seems to me that it was playing too many roles (I happy that we removed a couple of tenth of methods from it).
>>>
>>> Stef
>>>>>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project