[squeak-dev] Re: Etoys Tiles (Bert Freudenberg)

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

[squeak-dev] Re: Etoys Tiles (Bert Freudenberg)

kemal asad-syed
the issue I have with  adding code to the "general" class player , is for maintenance to  package of my Special Purpose Morph, I need to add a dependency to my modifications on the player .maybe if my Morph or its packaging can dynamically add the needed methods to the player that could work for me . which bring me a second problem now .How can I add with code a method to a class .lets say i want to add the following code to the player class.

Plyrmethod
    "wrapper need on the player to implement a method for My specialized Morph"

    |  |
    costume MyMorphmethod .

I am also looking for a way to walk thru the list of the methods of a class .
Thanks.
Kemal




Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Etoys Tiles (Bert Freudenberg)

Tapple Gao
On Mon, Sep 22, 2008 at 07:57:32PM +0200, kemal asad-syed wrote:

> the issue I have with  adding code to the "general" class player , is for
> maintenance to  package of my Special Purpose Morph, I need to add a
> dependency to my modifications on the player .maybe if my Morph or its
> packaging can dynamically add the needed methods to the player that could
> work for me . which bring me a second problem now .How can I add with code a
> method to a class .lets say i want to add the following code to the player
> class.
>
> Plyrmethod
>     "wrapper need on the player to implement a method for My specialized
> Morph"
>
>     |  |
>     costume MyMorphmethod .
>
> I am also looking for a way to walk thru the list of the methods of a class
> .
> Thanks.
> Kemal

Monticello supports extension methods to external classes. So,
to add a method to class Player and put it in package MyPackage,
create the method category *MyPackage and put Plyrmethod in that
category. From then on, MC will zip up that extension method
whenever you save the package, and load it on installation

Of course, I don't know if that means anything since Etoys seems
to be developed using changesets and not Monticello. Changesets
can handle extension methods too

--
Matthew Fulmer -- http://mtfulmer.wordpress.com/

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Etoys Tiles (Bert Freudenberg)

Yoshiki Ohshima-2
In reply to this post by kemal asad-syed
At Mon, 22 Sep 2008 19:57:32 +0200,
kemal asad-syed wrote:
>
> I am also looking for a way to walk thru the list of the methods of a class .

  Could you elaborate on this point?  What is missing from the System
Browser?

-- Yoshiki