Spec and Morphs

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

Spec and Morphs

kmo
I looked at Spec when it was first introduced. Then I left it alone until now when the API is more stable.

I seem to recall that when Spec was first introduced I was able to simply add arbitrary Morphs to the Composable model layout. In the latest Spec, I do not seem able to do this. Is this just me? Have I just forgotten how I used to do it? Is there still a simple way to use Spec to organise morphs?

If there is, can someone provide an example?

Do you really have to write your own MorphicAdaptor for any morph you wish to use that doesn't already have a Spec model?

Reply | Threaded
Open this post in threaded view
|

Re: Spec and Morphs

Benjamin Van Ryseghem (Pharo)
On 16 Feb 2014, at 14:36, kmo <[hidden email]> wrote:

> I looked at Spec when it was first introduced. Then I left it alone until now
> when the API is more stable.
>
> I seem to recall that when Spec was first introduced I was able to simply
> add arbitrary Morphs to the Composable model layout. In the latest Spec, I
> do not seem able to do this. Is this just me? Have I just forgotten how I
> used to do it? Is there still a simple way to use Spec to organise morphs?

It used to work out of the box before the last API change :)
Now `asSpecAdapter` is required

>
> If there is, can someone provide an example?

morph

        ^ Morph new asSpecAdapter

Ben
kmo
Reply | Threaded
Open this post in threaded view
|

Re: Spec and Morphs

kmo
Great. Just what I wanted. Many thanks. But consider putting it in the spec documentation - I think it's an important thing to know.
Reply | Threaded
Open this post in threaded view
|

Re: Spec and Morphs

Benjamin Van Ryseghem (Pharo)
Indeed :)

Ben

On 16 Feb 2014, at 15:16, kmo <[hidden email]> wrote:

Great. Just what I wanted. Many thanks. But consider putting it in the spec
documentation - I think it's an important thing to know.



--
View this message in context: http://forum.world.st/Spec-and-Morphs-tp4744084p4744109.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.