Re: [Pharo-users] Problem learning about Magritte
Peter wrote:
is there a method #asMorph which will give the morphic version as easily, or if not how do I get an editor as a Pharo window?
There is asMagritteMorph yes, defined in Magritte-Morph. You might need to load that additionally (it is loaded in the Forum image). Stephan
Stephan Thanks. I have Magritte-Morph in my image, but I wonder if anyone has debugged it. I send asMagritteMorph to a Magritte description and I get a MAContainerMorph, which is OK. Try sending openInWorld to this, and it falls over in MADescriptionMorph>>buildMorph, which calls MADescriptionMorph>>rectangleMorph, which tries to create an instance of the non-existent class RectangleMorph. I have tried to trace this back, and it is true that my original Pharo 3.0 image, downloaded on 30 Apr 2014, does not have the class RectangleMorph. I have looked at older images, and the class exists. Maybe my mistake was to try to use the Pharo 3.0 image the day it was announced. Perhaps I would be better off using one of the pre-packed images you mention. My only worry is that there is a list of dozens of contributions on https://ci.inria.fr/pharo-contribution/, and unless you have far more knowledge than I have it is impossible to know which might be helpful. For now I will follow your hint and use the Forum image. Thanks again for your help. Peter Kenny -----Original Message----- From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] On Behalf Of Stephan Eggermont Sent: 14 May 2014 00:25 To: pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Problem learning about Magritte Peter wrote:
is there a method #asMorph which will give the morphic version as easily, or if not how do I get an editor as a Pharo window?
There is asMagritteMorph yes, defined in Magritte-Morph. You might need to load that additionally (it is loaded in the Forum image). Stephan
you have an older version (configuration is probably not up to date)⦠just open project in monticello and load latest magritte-morph, it should work. and yes, I use it all the time :) Esteban On 14 May 2014, at 12:00, PBK Research <peter@pbkresearch.co.uk> wrote:
Stephan
Thanks. I have Magritte-Morph in my image, but I wonder if anyone has debugged it. I send asMagritteMorph to a Magritte description and I get a MAContainerMorph, which is OK. Try sending openInWorld to this, and it falls over in MADescriptionMorph>>buildMorph, which calls MADescriptionMorph>>rectangleMorph, which tries to create an instance of the non-existent class RectangleMorph.
I have tried to trace this back, and it is true that my original Pharo 3.0 image, downloaded on 30 Apr 2014, does not have the class RectangleMorph. I have looked at older images, and the class exists. Maybe my mistake was to try to use the Pharo 3.0 image the day it was announced. Perhaps I would be better off using one of the pre-packed images you mention. My only worry is that there is a list of dozens of contributions on https://ci.inria.fr/pharo-contribution/, and unless you have far more knowledge than I have it is impossible to know which might be helpful. For now I will follow your hint and use the Forum image.
Thanks again for your help.
Peter Kenny
-----Original Message----- From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] On Behalf Of Stephan Eggermont Sent: 14 May 2014 00:25 To: pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Problem learning about Magritte
Peter wrote:
is there a method #asMorph which will give the morphic version as easily, or if not how do I get an editor as a Pharo window?
There is asMagritteMorph yes, defined in Magritte-Morph. You might need to load that additionally (it is loaded in the Forum image).
Stephan
Esteban Well I don't have /such/ an old version. As I said, I downloaded the new Pharo 3.0 on 30 April. On 5 May I opened the configuration browser and loaded ConfigurationOfMagritte3. So presumably what I have is at most 9 days old. One of the frustrations of using Pharo is that everything seems to be always changing. I have in fact sorted it out by looking at the Forum image, following Stephan's suggestion. There I found that the call to RectangleMorph class has become BorderedMorph, and when I change that it all works. I now have an editor window which will change the instance, so I more or less understand how to use it. I still can't get it to produce an editor in a browser using Seaside, but that is less important. Peter Kenny -----Original Message----- From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] On Behalf Of Esteban Lorenzano Sent: 14 May 2014 12:35 To: Any question about pharo is welcome Subject: Re: [Pharo-users] Problem learning about Magritte you have an older version (configuration is probably not up to date). just open project in monticello and load latest magritte-morph, it should work. and yes, I use it all the time :) Esteban On 14 May 2014, at 12:00, PBK Research <peter@pbkresearch.co.uk> wrote:
Stephan
Thanks. I have Magritte-Morph in my image, but I wonder if anyone has debugged it. I send asMagritteMorph to a Magritte description and I get a MAContainerMorph, which is OK. Try sending openInWorld to this, and it falls over in MADescriptionMorph>>buildMorph, which calls MADescriptionMorph>>rectangleMorph, which tries to create an instance of the non-existent class RectangleMorph.
I have tried to trace this back, and it is true that my original Pharo 3.0 image, downloaded on 30 Apr 2014, does not have the class RectangleMorph. I have looked at older images, and the class exists. Maybe my mistake was to try to use the Pharo 3.0 image the day it was announced. Perhaps I would be better off using one of the pre-packed images you mention. My only worry is that there is a list of dozens of contributions on https://ci.inria.fr/pharo-contribution/, and unless you have far more knowledge than I have it is impossible to know which might be helpful. For now I will follow your hint and use the Forum image.
Thanks again for your help.
Peter Kenny
-----Original Message----- From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] On Behalf Of Stephan Eggermont Sent: 14 May 2014 00:25 To: pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Problem learning about Magritte
Peter wrote:
is there a method #asMorph which will give the morphic version as easily, or if not how do I get an editor as a Pharo window?
There is asMagritteMorph yes, defined in Magritte-Morph. You might need to load that additionally (it is loaded in the Forum image).
Stephan
participants (3)
-
Esteban Lorenzano -
PBK Research -
Stephan Eggermont