[not really an announcement] Morph To Method

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

[not really an announcement] Morph To Method

cbc
Hi.

So, ever since I started actually using Morphic to build things with drag/drop, I've wanted to build a little tool to turn those morphs back into code/classes in Squeak.  I started out working on that, but got distracted (especially since I started hand-coding for each and every Morph how to encode them - and I wasn't going to have the patience for that).

When Tm Jhnsn wrote that he wanted the same thing, I dusted off my old approach, and made it work - mostly.  If you look in
MCHttpRepository
location: 'http://www.squeaksource.com/morphToMethod'
user: 'cbc'
password: ''
and version 9, it should take most simple morphs and encode them.  It can also take some morphs from EToys and encode them as well, although I really don't know enough about EToys to figure out how to trap the right pieces.

If you do this, please heed the warnings in the class!  My first attempt at the EToys with TileMap morph wound up bringing in the whole TileMaps - morph and tiles both.  At this point, it is more of a spike - is this a useful direction to go, or not?

(Taken right after running through the TileMap video myself)

-CBC


Reply | Threaded
Open this post in threaded view
|

Re: [not really an announcement] Morph To Method

David T. Lewis
On Sun, Mar 04, 2018 at 06:36:14PM -0800, Chris Cunningham wrote:

> Hi.
>
> So, ever since I started actually using Morphic to build things with
> drag/drop, I've wanted to build a little tool to turn those morphs back
> into code/classes in Squeak.  I started out working on that, but got
> distracted (especially since I started hand-coding for each and every Morph
> how to encode them - and I wasn't going to have the patience for that).
>
> When Tm Jhnsn wrote that he wanted the same thing, I dusted off my old
> approach, and made it work - mostly.  If you look in
>
> MCHttpRepository
>     location: 'http://www.squeaksource.com/morphToMethod'
>     user: 'cbc'
>     password: ''
>
> and version 9, it should take most simple morphs and encode them.  It can
> also take some morphs from EToys and encode them as well, although I really
> don't know enough about EToys to figure out how to trap the right pieces.
>
> If you do this, please heed the warnings in the class!  My first attempt at
> the EToys with TileMap morph wound up bringing in the whole TileMaps -
> morph and tiles both.  At this point, it is more of a spike - is this a
> useful direction to go, or not?
>
> Video: *https://youtu.be/ou9g1_eLszM <https://youtu.be/ou9g1_eLszM>*
> (Taken right after running through the TileMap video myself)
>
> -CBC

Well that's pretty cool stuff!

Dave


cbc
Reply | Threaded
Open this post in threaded view
|

Re: [not really an announcement] Morph To Method

cbc


On Sun, Mar 4, 2018 at 7:46 PM, David T. Lewis <[hidden email]> wrote:
On Sun, Mar 04, 2018 at 06:36:14PM -0800, Chris Cunningham wrote:
> Hi.
>
> So, ever since I started actually using Morphic to build things with
> drag/drop, I've wanted to build a little tool to turn those morphs back
> into code/classes in Squeak.  I started out working on that, but got
> distracted (especially since I started hand-coding for each and every Morph
> how to encode them - and I wasn't going to have the patience for that).
>
> When Tm Jhnsn wrote that he wanted the same thing, I dusted off my old
> approach, and made it work - mostly.  If you look in
>
> MCHttpRepository
>     location: 'http://www.squeaksource.com/morphToMethod'
>     user: 'cbc'
>     password: ''
>
> and version 9, it should take most simple morphs and encode them.  It can
> also take some morphs from EToys and encode them as well, although I really
> don't know enough about EToys to figure out how to trap the right pieces.
>
> If you do this, please heed the warnings in the class!  My first attempt at
> the EToys with TileMap morph wound up bringing in the whole TileMaps -
> morph and tiles both.  At this point, it is more of a spike - is this a
> useful direction to go, or not?
>
> Video: *https://youtu.be/ou9g1_eLszM <https://youtu.be/ou9g1_eLszM>*
> (Taken right after running through the TileMap video myself)
>
> -CBC

Well that's pretty cool stuff!

Dave

Thanks.
Forgot to mention that the search part doesn't work in the new morph - part of the 'I don't understand EToys enough'.
-cbc



Reply | Threaded
Open this post in threaded view
|

Re: [not really an announcement] Morph To Method

Tim Johnson-2
In reply to this post by cbc

On Mar 5, 2018, at 4:00 AM, [hidden email] wrote:


Video: *https://youtu.be/ou9g1_eLszM <https://youtu.be/ou9g1_eLszM>*
(Taken right after running through the TileMap video myself)

-CBC

Well that's pretty cool stuff!

Dave

Yes!  Thanks Chris!  Very cool!

Also, thanks David T Lewis for addressing my bug report! 

I have been using Morphic more lately, encouraged by the cool things you folks have been doing with it.  

Best,
Tim