Spec #add:withSpec: Bug?

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

Spec #add:withSpec: Bug?

Sean P. DeNigris
Administrator
| layout |
model := DynamicComposableModel new.
model instantiateModels: {#accessor.  #TextInputFieldModel}.
layout := SpecLayout composed.
layout add: #accessor withSpec: TextInputFieldModel defaultSpec.
model openWithSpecLayout: layout.

leads to:
DNU SpecLayoutAddWithSpec(Object)>>doesNotUnderstand: #subwidget:

After I added it, I got:
DNU SpecLayoutAddWithSpec(Object)>>doesNotUnderstand: #layoutFrame:

After I added that, I got:
UndefinedObject(Object)>>doesNotUnderstand: #asSymbol
SpecInterpreter>>interpretASpec:

What do you think?

Thanks,
Sean

Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Spec #add:withSpec: Bug?

Sean P. DeNigris
Administrator
Sean P. DeNigris wrote
leads to:
DNU SpecLayoutAddWithSpec(Object)>>doesNotUnderstand: #subwidget:
That was in 2.0, in 30172, I get:
MessageNotUnderstood: DynamicComposableModel>>getText
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Spec #add:withSpec: Bug?

Benjamin Van Ryseghem (Pharo)
What you wanna do is

model := DynamicComposableModel new.
model instantiateModels: {#accessor.  #TextInputFieldModel}.
layout := SpecLayout composed.
layout add: #accessor withSpec: #defaultSpec.
model openWithSpecLayout: layout.

maybe the message should be add:withSpecSelector:

Ben

On May 28, 2013, at 10:42 PM, Sean P. DeNigris <[hidden email]> wrote:

Sean P. DeNigris wrote
leads to:
DNU SpecLayoutAddWithSpec(Object)>>doesNotUnderstand: #subwidget:

That was in 2.0, in 30172, I get:
MessageNotUnderstood: DynamicComposableModel>>getText



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Spec-add-withSpec-Bug-tp4690523p4690525.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.