[Pharo-users] spec question

2014-06-26 Thread Pablo R. Digonzelli

Hi all, two questions about Spec. 

1) How can i change the font for a ListModel or TextModel? 

2) I try , but nothing happend . I does not work but there is no error also 

l := ListModel new. 
l backgroundColorBlock: [ Color red ]. 
l openWithSpec . 

Can I change de backcolor of ListModel ? 

Sorry for my english. 

TIA 




Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
Email: pdigonze...@softsargentina.com 
pdigonze...@gmail.com 
Cel: 5493815982714 




[Pharo-users] spec question

2014-06-26 Thread Pablo R. Digonzelli
Hi all, two questions about Spec. 

1) How can i change the font for a ListModel or TextModel? 

2) I try , but nothing happend . I does not work but there is no error also 

l := ListModel new. 
l backgroundColorBlock: [ Color red ]. 
l openWithSpec . 

Can I change de backcolor of ListModel ? 

Sorry for my english. 

TIA 




Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
Email: pdigonze...@softsargentina.com 
pdigonze...@gmail.com 
Cel: 5493815982714 



Re: [Pharo-users] Spec question

2014-03-03 Thread Glenn Cavarlé
Ops, i forgot to write the  use case of the ListViewModel... i added it...
I subclass TreeModel to create a "native" Spec component like ListModel or
DropListModel, which does simply what it is supposed to do, show a list of
ComposableModel.
It's just for the example, i made it also using ComposableModel and adding a
TreeModel in layout and it works fine :).

I will make an example more elegant tonight and i will add a screenshot.

thanks for feedbacks,

Regards,



-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4747554.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-03-03 Thread Benjamin
Thanks for the pointer :)

Why do you subclass TreeModel instead of using one?
Could you add an example and a screenshot so we can see how it looks :)


Thanks,
Ben

On 03 Mar 2014, at 17:15, Glenn Cavarlé  wrote:

> Hi Benjamin and Hernán, 
> 
> I found few time to make a little example of ListView (extend TreeModel).
> I hosted it in my wiki :
> ListViewModel Example
>   
> The only specific point it's to well define the displayBlock block an that's
> all.
> As Benjamin said previously, it was quite easy to do that with TreeModel.
> 
> Thanks Benjamin ;-)
> 
> Regards,
> 
> 
> 
> -
> Glenn Cavarlé
> --
> View this message in context: 
> http://forum.world.st/Spec-question-tp4741608p4747490.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 



Re: [Pharo-users] Spec question

2014-03-03 Thread Robert Shiplett
Glenn,

thanks for posting the link !

Robert


On 3 March 2014 12:15, Glenn Cavarlé  wrote:

> Hi Benjamin and Hernán,
>
> I found few time to make a little example of ListView (extend TreeModel).
> I hosted it in my wiki :
> ListViewModel Example
> 
> The only specific point it's to well define the displayBlock block an
> that's
> all.
> As Benjamin said previously, it was quite easy to do that with TreeModel.
>
> Thanks Benjamin ;-)
>
> Regards,
>
>
>
> -
> Glenn Cavarlé
> --
> View this message in context:
> http://forum.world.st/Spec-question-tp4741608p4747490.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Re: [Pharo-users] Spec question

2014-03-03 Thread Glenn Cavarlé
Hi Benjamin and Hernán, 

I found few time to make a little example of ListView (extend TreeModel).
I hosted it in my wiki :
ListViewModel Example
  
The only specific point it's to well define the displayBlock block an that's
all.
As Benjamin said previously, it was quite easy to do that with TreeModel.

Thanks Benjamin ;-)

Regards,



-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4747490.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-03-02 Thread Hernán Morales Durand
Thanks Benjamin, I will try to build something and let you know.
Cheers,

Hernán


2014-03-02 10:11 GMT-03:00 Benjamin :

> On 01 Mar 2014, at 06:18, Hernán Morales Durand 
> wrote:
>
> Did you have progress with that ListView in Spec?
> Anything to check in the repo?
>
>
> You can experiment a bit based on this script[1] using the latest Spec
> code.
>
> Ben
>
> [1] https://gist.github.com/BenjaminVanRyseghem/9306328
>


Re: [Pharo-users] Spec question

2014-03-02 Thread Benjamin
On 01 Mar 2014, at 06:18, Hernán Morales Durand  
wrote:

> Did you have progress with that ListView in Spec? 
> Anything to check in the repo?


You can experiment a bit based on this script[1] using the latest Spec code.

Ben

[1] https://gist.github.com/BenjaminVanRyseghem/9306328

Re: [Pharo-users] Spec question

2014-03-01 Thread Glenn Cavarlé
Thanks for interest,

I had a lot of problems i had to resolved before continue my work on
ListView.
it's possible to do a "ListView like" with MorphTreeModel (example:
SimpleGridExample) and i'm seeing what it's possible to do simply with Spec
TreeModel.

I try to post an example in this thread, this weekend i hope.

Regards,



-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4747231.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-02-28 Thread Hernán Morales Durand
Did you have progress with that ListView in Spec?
Anything to check in the repo?

Cheers,

Hernán



2014-02-05 15:15 GMT-03:00 Benjamin :

> Ok :)
>
> So displayBlock can return any morph you want :)
> So I think you can do this quite easily :)
>
> I will have a deeper look tomorrow afternoon, and tell you :)
>
> Ben
>
> On 05 Feb 2014, at 01:34, Glenn Cavarlé  wrote:
>
> Thanks for your reply,
>
> I haven't an image but google yes :)
> An example with Android ListView:
>
> http://www.codelearn.org/android-tutorial/assets/list_view/list-view-example-1-95973c43c6eed64af57c7e050981966b.jpg
> <
> http://www.codelearn.org/android-tutorial/assets/list_view/list-view-example-1-95973c43c6eed64af57c7e050981966b.jpg>
>
>
> TreeModel to make a list? I look at it.
>
> Thanks,
>
> Glenn
>
>
>
>
> -
> Glenn Cavarlé
> --
> View this message in context:
> http://forum.world.st/Spec-question-tp4741608p4741617.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>


Re: [Pharo-users] Spec question

2014-02-05 Thread Alain Plantec
Hi Stephane, all
Hello Glenn

Glenn is starting his phd at Brest.
You will meet him the next time you come at Brest :)
and we will attend esug together.

Cheers
Alain

On 5 févr. 2014, at 23:30, Glenn Cavarlé  wrote:

> Hi Stef,
> 
> It would be a pleasure but i'm located in Brest, so,a bit too distant...
> For holidays maybe ? :)
> 
> But you can come in Brest if you want ? it's so beautiful !
> 
> Regards,
> Glenn
> 
> 
> 
> -
> Glenn Cavarlé
> --
> View this message in context: 
> http://forum.world.st/Spec-question-tp4741608p4741808.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 




Re: [Pharo-users] Spec question

2014-02-05 Thread Glenn Cavarlé
Tkanks Ben for your corrections and your encouragement,
Google help me a little :) but it's a good exercice, especially if i want to
make me understand in the Smalltalk community.

Regards,
Glenn 



-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4741811.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-02-05 Thread Glenn Cavarlé
Hi Stef,

It would be a pleasure but i'm located in Brest, so,a bit too distant...
For holidays maybe ? :)

But you can come in Brest if you want ? it's so beautiful !

Regards,
Glenn



-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4741808.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-02-05 Thread Pharo4Stef
hi glenn

were are you located?
Because if you are around lille you should come to hack with us :)

Stef
On 05 Feb 2014, at 11:54, Glenn Cavarlé  wrote:

> Hi,
> I have looked at the TreeModel class and it's not exactly that i seek.
> The idea is rather something like that :
> 
> MyListModel>>initializeWidgets
>title := self newLabel.
>manager := self newListManager.
>manager model:#MyDummyItemModel
> 
> MyListModel class>>defaultSpec
>^SpecLayout composed
>newColumn:[:mainCol|
>mainCol add: #title;
>add: #manager
>];
>yourself
> 
> MyDummyItemModel>>initializeWidgets
>image := self newImage.
>address := self newLabel.
>zipCode := self newLabel.
>city := self newLabel.
>editBtn := self newButton.
>delBtn := self newButton.
> 
> MyDummyItemModel class>>defaultSpec:
>^SpecLayout composed
>newRow:[:mainRow|
>mainRow add: #image;
>newColumn:[:addrCol|
>addrCol add: #address;
>   add: #zipCode;
>   add: #city
>];
>newColumn:[:btnCol|
>btnCol add: #editBtn;
>  add: #delBtn
>];   
>];
>yourself
> 
> 
> mlm := MyListModel new.
> mlm openWithSpec.
> mlm title value: 'I am a list'.
> mlm manager items: aCollectionOfDummyObjects 
> 
> 
> it seem there isn't such implementation in Spec.
> What would be the best way to implement it (if it's possible)? a mix between
> ListModel and TabManager ?
> 
> Regards,
> Glenn
> 
> 
> 
> -
> Glenn Cavarlé
> --
> View this message in context: 
> http://forum.world.st/Spec-question-tp4741608p4741681.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 




Re: [Pharo-users] Spec question

2014-02-05 Thread Benjamin
Ok :)

So displayBlock can return any morph you want :)
So I think you can do this quite easily :)

I will have a deeper look tomorrow afternoon, and tell you :)

Ben

On 05 Feb 2014, at 01:34, Glenn Cavarlé  wrote:

> Thanks for your reply,
> 
> I haven't an image but google yes :)
> An example with Android ListView:
> http://www.codelearn.org/android-tutorial/assets/list_view/list-view-example-1-95973c43c6eed64af57c7e050981966b.jpg
> 
>   
> 
> TreeModel to make a list? I look at it.
> 
> Thanks,
> 
> Glenn
> 
> 
> 
> 
> -
> Glenn Cavarlé
> --
> View this message in context: 
> http://forum.world.st/Spec-question-tp4741608p4741617.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 



Re: [Pharo-users] Spec question

2014-02-05 Thread btc

Welcome Glenn,
As a native english speaker I'd say your English is pretty darn good. 
I've presumed to do a few corrections and you can see it is a very few.  
So don't hold back. 
---


Hi all,
i'm new (first post) and my english is very poor so please don't blame me
:).

I would like to use Spec _to_ display a collection of domain objects and i
would like to specify the layout which _applys_ to each _item_,
not just display a String or a Text like "ListModel>>displayBlock:" but a
more _complex_ layout with rows, columns and images within (for example).
To illustrate, an equivalent would be the component ListView in Android.

I turn to you to know if it's possible to do that with Spec.
---

Besides, I think there are more people on the list with english as a second 
language that those with native english.
cheers -ben


Glenn Cavarlé wrote:

Hi all,
i'm new (first post) and my english is very poor so please don't blame me
:).

I would like to use Spec for display a collection of domain objects and i
would like to specify the layout which apply to each items,
not just display a String or a Text like "ListModel>>displayBlock:" but a
more complexe layout with rows, columns and images within (for example).
To illustrate, an equivalent would be the component ListView in Android.

I turn to you to know if it's possible to do that with Spec.
Thanks,


Regards,
Glenn



-
Glenn Cavarlé
--
View this message in context: http://forum.world.st/Spec-question-tp4741608.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


  






Re: [Pharo-users] Spec question

2014-02-05 Thread Glenn Cavarlé
Hi,
I have looked at the TreeModel class and it's not exactly that i seek.
The idea is rather something like that :

MyListModel>>initializeWidgets
title := self newLabel.
manager := self newListManager.
manager model:#MyDummyItemModel

MyListModel class>>defaultSpec
^SpecLayout composed
newColumn:[:mainCol|
mainCol add: #title;
add: #manager
];
yourself

MyDummyItemModel>>initializeWidgets
image := self newImage.
address := self newLabel.
zipCode := self newLabel.
city := self newLabel.
editBtn := self newButton.
delBtn := self newButton.

MyDummyItemModel class>>defaultSpec:
^SpecLayout composed
newRow:[:mainRow|
mainRow add: #image;
newColumn:[:addrCol|
addrCol add: #address;
   add: #zipCode;
   add: #city
];
newColumn:[:btnCol|
btnCol add: #editBtn;
  add: #delBtn
];   
];
yourself


 mlm := MyListModel new.
 mlm openWithSpec.
 mlm title value: 'I am a list'.
 mlm manager items: aCollectionOfDummyObjects 


it seem there isn't such implementation in Spec.
What would be the best way to implement it (if it's possible)? a mix between
ListModel and TabManager ?

Regards,
Glenn



-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4741681.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-02-04 Thread Pharo4Stef

> Hi all,
> i'm new (first post) and my english is very poor so please don't blame me
> :).

same as ours :)
and we do not care so welcome and do not hesitate to ask question and have fun 
with us and pharo :)

> I would like to use Spec for display a collection of domain objects and i
> would like to specify the layout which apply to each items,
> not just display a String or a Text like "ListModel>>displayBlock:" but a
> more complexe layout with rows, columns and images within (for example).
> To illustrate, an equivalent would be the component ListView in Android.
> 
> I turn to you to know if it's possible to do that with Spec.
> Thanks,
> 
> 
> Regards,
> Glenn
> 
> 
> 
> -
> Glenn Cavarlé
> --
> View this message in context: 
> http://forum.world.st/Spec-question-tp4741608.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 




Re: [Pharo-users] Spec question

2014-02-04 Thread Glenn Cavarlé
Thanks for your reply,

I haven't an image but google yes :)
An example with Android ListView:
http://www.codelearn.org/android-tutorial/assets/list_view/list-view-example-1-95973c43c6eed64af57c7e050981966b.jpg

  

TreeModel to make a list? I look at it.

Thanks,

Glenn




-
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-question-tp4741608p4741617.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec question

2014-02-04 Thread Benjamin
I think the widget to look at is TreeModel :)

Do you have an image showing what you would like?

Ben

On 05 Feb 2014, at 00:58, Glenn Cavarlé  wrote:

> Hi all,
> i'm new (first post) and my english is very poor so please don't blame me
> :).
> 
> I would like to use Spec for display a collection of domain objects and i
> would like to specify the layout which apply to each items,
> not just display a String or a Text like "ListModel>>displayBlock:" but a
> more complexe layout with rows, columns and images within (for example).
> To illustrate, an equivalent would be the component ListView in Android.
> 
> I turn to you to know if it's possible to do that with Spec.
> Thanks,
> 
> 
> Regards,
> Glenn
> 
> 
> 
> -
> Glenn Cavarlé
> --
> View this message in context: 
> http://forum.world.st/Spec-question-tp4741608.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 



[Pharo-users] Spec question

2014-02-04 Thread Glenn Cavarlé
Hi all,
i'm new (first post) and my english is very poor so please don't blame me
:).

I would like to use Spec for display a collection of domain objects and i
would like to specify the layout which apply to each items,
not just display a String or a Text like "ListModel>>displayBlock:" but a
more complexe layout with rows, columns and images within (for example).
To illustrate, an equivalent would be the component ListView in Android.

I turn to you to know if it's possible to do that with Spec.
Thanks,


Regards,
Glenn



-
Glenn Cavarlé
--
View this message in context: http://forum.world.st/Spec-question-tp4741608.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Spec Question

2013-10-25 Thread Benjamin
On 25 Oct 2013, at 11:34, Manfred Kröhnert  wrote:

> Hi,
> 
> I tested it it without hurrying today.
> Using Cmd+s with 'whenTextIsAccepted:' works both on Pharo 2.0 and 3.0.
> Unfortunately I exchanged the TextModel with TextInputFieldModel where it did 
> not work.
> 
> However, using 'whenTextChanged:' does not work or at least not how I expect 
> it to work.
> From the naming I would that this message gets triggered, once something was 
> typed into the textfield.
> But apparently it doesn't get triggered at all in my case (Pharo 2.0 and 3.0).
> Any ideas?

Right now, I can’t see why

Must probably the event is not triggered, or not at the correct moment

Ben


> Best,
> Manfred
> 
> 
> 
> 
> 
> On Thu, Oct 24, 2013 at 2:35 PM, Benjamin 
>  wrote:
> Ok :)
> 
> Thank you, and see you tomorrow :P
> 
> Ben
> 
> On 24 Oct 2013, at 14:34, Manfred Kröhnert  
> wrote:
> 
>> Yes, I can do that but it'll have to wait until tomorrow.
>> Will report back, soon.
>> 
>> Thanks for the help so far,
>> Manfred
>> 
>> 
>> 
>> 
>> On Thu, Oct 24, 2013 at 2:29 PM, Benjamin 
>>  wrote:
>> Can you try in 3.0, since Spec changed *a lot* in the meantime 
>> 
>> Ben
>> 
>> On 24 Oct 2013, at 14:25, Manfred Kröhnert  
>> wrote:
>> 
>>> Hello Ben and Clément,
>>> 
>>> thanks for the quick reply.
>>> But even when I hit Cmd+s the Text of the label stays the same and the 
>>> button is not enabled.
>>> No matter if I use 'whenTextChanged:' or 'whenTextIsAccepted:'.
>>> 
>>> I only tested this in the Pharo 2.0 image.
>>> 
>>> Best,
>>> Manfred
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On Thu, Oct 24, 2013 at 2:22 PM, Clément Bera  
>>> wrote:
>>> Hey,
>>> 
>>> Accepting a text usually means the is compiled. To accept a text, right 
>>> click on it, then click accept in the contextual menu (at the bottom). You 
>>> can also do it with Cmd+s on Mac.
>>> 
>>> Try again and tell us if the #whenTextIsAccepted: works fine in your image 
>>> or not.
>>> 
>>> Best,
>>> 
>>> 
>>> 
>>> 2013/10/24 Benjamin 
>>> Text is accepted when you “save” it (cmd+s)
>>> 
>>> Ben
>>> 
>>> On 24 Oct 2013, at 14:05, Manfred Kröhnert  
>>> wrote:
>>> 
 Hi everyone,
 
 I finally got around to check back on a Spec question that popped up about 
 two weeks ago.
 
 At that time I was giving Spec a first try and gathered information from a 
 couple of sources.
 One of them was the draft chapter about Spec from the Pharo for the 
 Enterprise book.
 
 https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/ws/Spec/Spec.pier.pdf/*view*/
 
 The example has the following method:
 
 TestSpec>>initializePresenter
 example whenTextIsAccepted: [ changes text: 'The text Changed'. 
 acceptChanges enable ].
 
 This should change the text of the 'changes' LabelModel when the text in 
 the 'example' TextModel is accepted.
 
 
 
 
 
 
 Now, there the issue for me was that the Label text did not change once 
 when I typed text into the presented textfield.
 Even when I changed the method from 'whenTextIsAccepted:' to 
 'whenTextChanged:'.
 Is this intended or is this an issue with Spec?
 
 Also, it is not clear to me what 'accepting' text means (maybe I didn't 
 look thoroughly enough).
 The method comment just states that it is called when the text is accepted.
 Which is kind of self referential ;-)
 
 The OS X Pharo versions I used for testing where newly downloaded Pharo 
 2.0 and 3.0 from about 2 weeks ago.
 They were downloaded from here:
 http://files.pharo.org/platform/Pharo2.0-mac.zip
 http://files.pharo.org/platform/Pharo3.0-mac.zip
 
 Best,
 Manfred
>>> 
>>> 
>>> 
>> 
>> 
> 
> 



Re: [Pharo-users] Spec Question

2013-10-25 Thread Manfred Kröhnert
Hi,

I tested it it without hurrying today.
Using Cmd+s with 'whenTextIsAccepted:' works both on Pharo 2.0 and 3.0.
Unfortunately I exchanged the TextModel with TextInputFieldModel where it
did not work.

However, using 'whenTextChanged:' does not work or at least not how I
expect it to work.
>From the naming I would that this message gets triggered, once something
was typed into the textfield.
But apparently it doesn't get triggered at all in my case (Pharo 2.0 and
3.0).
Any ideas?

Best,
Manfred





On Thu, Oct 24, 2013 at 2:35 PM, Benjamin <
benjamin.vanryseghem.ph...@gmail.com> wrote:

> Ok :)
>
> Thank you, and see you tomorrow :P
>
> Ben
>
> On 24 Oct 2013, at 14:34, Manfred Kröhnert 
> wrote:
>
> Yes, I can do that but it'll have to wait until tomorrow.
> Will report back, soon.
>
> Thanks for the help so far,
> Manfred
>
>
>
>
> On Thu, Oct 24, 2013 at 2:29 PM, Benjamin <
> benjamin.vanryseghem.ph...@gmail.com> wrote:
>
>> Can you try in 3.0, since Spec changed *a lot* in the meantime
>>
>> Ben
>>
>> On 24 Oct 2013, at 14:25, Manfred Kröhnert 
>> wrote:
>>
>> Hello Ben and Clément,
>>
>> thanks for the quick reply.
>> But even when I hit Cmd+s the Text of the label stays the same and the
>> button is not enabled.
>> No matter if I use 'whenTextChanged:' or 'whenTextIsAccepted:'.
>>
>> I only tested this in the Pharo 2.0 image.
>>
>> Best,
>> Manfred
>>
>>
>>
>>
>>
>>
>> On Thu, Oct 24, 2013 at 2:22 PM, Clément Bera wrote:
>>
>>> Hey,
>>>
>>> Accepting a text usually means the is compiled. To accept a text, right
>>> click on it, then click accept in the contextual menu (at the bottom). You
>>> can also do it with Cmd+s on Mac.
>>>
>>> Try again and tell us if the #whenTextIsAccepted: works fine in your
>>> image or not.
>>>
>>> Best,
>>>
>>>
>>>
>>> 2013/10/24 Benjamin 
>>>
 Text is accepted when you “save” it (cmd+s)

 Ben

 On 24 Oct 2013, at 14:05, Manfred Kröhnert 
 wrote:

 Hi everyone,

 I finally got around to check back on a Spec question that popped up
 about two weeks ago.

 At that time I was giving Spec a first try and gathered information
 from a couple of sources.
 One of them was the draft chapter about Spec from the Pharo for the
 Enterprise book.


 https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/ws/Spec/Spec.pier.pdf/*view*/

 The example has the following method:

 TestSpec>>initializePresenter
 example whenTextIsAccepted: [ changes text: 'The text Changed'. 
 acceptChanges enable ].


 This should change the text of the 'changes' LabelModel when the text in 
 the 'example' TextModel is accepted.




 Now, there the issue for me was that the Label text did not change once
 when I typed text into the presented textfield.
 Even when I changed the method from 'whenTextIsAccepted:' to
 'whenTextChanged:'.
 Is this intended or is this an issue with Spec?

 Also, it is not clear to me what 'accepting' text means (maybe I didn't
 look thoroughly enough).
 The method comment just states that it is called when the text is
 accepted.
 Which is kind of self referential ;-)

 The OS X Pharo versions I used for testing where newly downloaded Pharo
 2.0 and 3.0 from about 2 weeks ago.
 They were downloaded from here:
 http://files.pharo.org/platform/Pharo2.0-mac.zip
 http://files.pharo.org/platform/Pharo3.0-mac.zip

 Best,
 Manfred



>>>
>>
>>
>
>


Re: [Pharo-users] Spec Question

2013-10-24 Thread Benjamin
Ok :)

Thank you, and see you tomorrow :P

Ben

On 24 Oct 2013, at 14:34, Manfred Kröhnert  wrote:

> Yes, I can do that but it'll have to wait until tomorrow.
> Will report back, soon.
> 
> Thanks for the help so far,
> Manfred
> 
> 
> 
> 
> On Thu, Oct 24, 2013 at 2:29 PM, Benjamin 
>  wrote:
> Can you try in 3.0, since Spec changed *a lot* in the meantime 
> 
> Ben
> 
> On 24 Oct 2013, at 14:25, Manfred Kröhnert  
> wrote:
> 
>> Hello Ben and Clément,
>> 
>> thanks for the quick reply.
>> But even when I hit Cmd+s the Text of the label stays the same and the 
>> button is not enabled.
>> No matter if I use 'whenTextChanged:' or 'whenTextIsAccepted:'.
>> 
>> I only tested this in the Pharo 2.0 image.
>> 
>> Best,
>> Manfred
>> 
>> 
>> 
>> 
>> 
>> 
>> On Thu, Oct 24, 2013 at 2:22 PM, Clément Bera  wrote:
>> Hey,
>> 
>> Accepting a text usually means the is compiled. To accept a text, right 
>> click on it, then click accept in the contextual menu (at the bottom). You 
>> can also do it with Cmd+s on Mac.
>> 
>> Try again and tell us if the #whenTextIsAccepted: works fine in your image 
>> or not.
>> 
>> Best,
>> 
>> 
>> 
>> 2013/10/24 Benjamin 
>> Text is accepted when you “save” it (cmd+s)
>> 
>> Ben
>> 
>> On 24 Oct 2013, at 14:05, Manfred Kröhnert  
>> wrote:
>> 
>>> Hi everyone,
>>> 
>>> I finally got around to check back on a Spec question that popped up about 
>>> two weeks ago.
>>> 
>>> At that time I was giving Spec a first try and gathered information from a 
>>> couple of sources.
>>> One of them was the draft chapter about Spec from the Pharo for the 
>>> Enterprise book.
>>> 
>>> https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/ws/Spec/Spec.pier.pdf/*view*/
>>> 
>>> The example has the following method:
>>> 
>>> TestSpec>>initializePresenter
>>> example whenTextIsAccepted: [ changes text: 'The text Changed'. 
>>> acceptChanges enable ].
>>> 
>>> This should change the text of the 'changes' LabelModel when the text in 
>>> the 'example' TextModel is accepted.
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Now, there the issue for me was that the Label text did not change once 
>>> when I typed text into the presented textfield.
>>> Even when I changed the method from 'whenTextIsAccepted:' to 
>>> 'whenTextChanged:'.
>>> Is this intended or is this an issue with Spec?
>>> 
>>> Also, it is not clear to me what 'accepting' text means (maybe I didn't 
>>> look thoroughly enough).
>>> The method comment just states that it is called when the text is accepted.
>>> Which is kind of self referential ;-)
>>> 
>>> The OS X Pharo versions I used for testing where newly downloaded Pharo 2.0 
>>> and 3.0 from about 2 weeks ago.
>>> They were downloaded from here:
>>> http://files.pharo.org/platform/Pharo2.0-mac.zip
>>> http://files.pharo.org/platform/Pharo3.0-mac.zip
>>> 
>>> Best,
>>> Manfred
>> 
>> 
>> 
> 
> 



Re: [Pharo-users] Spec Question

2013-10-24 Thread Manfred Kröhnert
Yes, I can do that but it'll have to wait until tomorrow.
Will report back, soon.

Thanks for the help so far,
Manfred




On Thu, Oct 24, 2013 at 2:29 PM, Benjamin <
benjamin.vanryseghem.ph...@gmail.com> wrote:

> Can you try in 3.0, since Spec changed *a lot* in the meantime
>
> Ben
>
> On 24 Oct 2013, at 14:25, Manfred Kröhnert 
> wrote:
>
> Hello Ben and Clément,
>
> thanks for the quick reply.
> But even when I hit Cmd+s the Text of the label stays the same and the
> button is not enabled.
> No matter if I use 'whenTextChanged:' or 'whenTextIsAccepted:'.
>
> I only tested this in the Pharo 2.0 image.
>
> Best,
> Manfred
>
>
>
>
>
>
> On Thu, Oct 24, 2013 at 2:22 PM, Clément Bera wrote:
>
>> Hey,
>>
>> Accepting a text usually means the is compiled. To accept a text, right
>> click on it, then click accept in the contextual menu (at the bottom). You
>> can also do it with Cmd+s on Mac.
>>
>> Try again and tell us if the #whenTextIsAccepted: works fine in your
>> image or not.
>>
>> Best,
>>
>>
>>
>> 2013/10/24 Benjamin 
>>
>>> Text is accepted when you “save” it (cmd+s)
>>>
>>> Ben
>>>
>>> On 24 Oct 2013, at 14:05, Manfred Kröhnert 
>>> wrote:
>>>
>>> Hi everyone,
>>>
>>> I finally got around to check back on a Spec question that popped up
>>> about two weeks ago.
>>>
>>> At that time I was giving Spec a first try and gathered information from
>>> a couple of sources.
>>> One of them was the draft chapter about Spec from the Pharo for the
>>> Enterprise book.
>>>
>>>
>>> https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/ws/Spec/Spec.pier.pdf/*view*/
>>>
>>> The example has the following method:
>>>
>>> TestSpec>>initializePresenter
>>> example whenTextIsAccepted: [ changes text: 'The text Changed'. 
>>> acceptChanges enable ].
>>>
>>>
>>> This should change the text of the 'changes' LabelModel when the text in 
>>> the 'example' TextModel is accepted.
>>>
>>>
>>>
>>> Now, there the issue for me was that the Label text did not change once
>>> when I typed text into the presented textfield.
>>> Even when I changed the method from 'whenTextIsAccepted:' to
>>> 'whenTextChanged:'.
>>> Is this intended or is this an issue with Spec?
>>>
>>> Also, it is not clear to me what 'accepting' text means (maybe I didn't
>>> look thoroughly enough).
>>> The method comment just states that it is called when the text is
>>> accepted.
>>> Which is kind of self referential ;-)
>>>
>>> The OS X Pharo versions I used for testing where newly downloaded Pharo
>>> 2.0 and 3.0 from about 2 weeks ago.
>>> They were downloaded from here:
>>> http://files.pharo.org/platform/Pharo2.0-mac.zip
>>> http://files.pharo.org/platform/Pharo3.0-mac.zip
>>>
>>> Best,
>>> Manfred
>>>
>>>
>>>
>>
>
>


Re: [Pharo-users] Spec Question

2013-10-24 Thread Benjamin
Can you try in 3.0, since Spec changed *a lot* in the meantime 

Ben

On 24 Oct 2013, at 14:25, Manfred Kröhnert  wrote:

> Hello Ben and Clément,
> 
> thanks for the quick reply.
> But even when I hit Cmd+s the Text of the label stays the same and the button 
> is not enabled.
> No matter if I use 'whenTextChanged:' or 'whenTextIsAccepted:'.
> 
> I only tested this in the Pharo 2.0 image.
> 
> Best,
> Manfred
> 
> 
> 
> 
> 
> 
> On Thu, Oct 24, 2013 at 2:22 PM, Clément Bera  wrote:
> Hey,
> 
> Accepting a text usually means the is compiled. To accept a text, right click 
> on it, then click accept in the contextual menu (at the bottom). You can also 
> do it with Cmd+s on Mac.
> 
> Try again and tell us if the #whenTextIsAccepted: works fine in your image or 
> not.
> 
> Best,
> 
> 
> 
> 2013/10/24 Benjamin 
> Text is accepted when you “save” it (cmd+s)
> 
> Ben
> 
> On 24 Oct 2013, at 14:05, Manfred Kröhnert  
> wrote:
> 
>> Hi everyone,
>> 
>> I finally got around to check back on a Spec question that popped up about 
>> two weeks ago.
>> 
>> At that time I was giving Spec a first try and gathered information from a 
>> couple of sources.
>> One of them was the draft chapter about Spec from the Pharo for the 
>> Enterprise book.
>> 
>> https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/ws/Spec/Spec.pier.pdf/*view*/
>> 
>> The example has the following method:
>> 
>> TestSpec>>initializePresenter
>> example whenTextIsAccepted: [ changes text: 'The text Changed'. 
>> acceptChanges enable ].
>> 
>> This should change the text of the 'changes' LabelModel when the text in the 
>> 'example' TextModel is accepted.
>> 
>> 
>> 
>> 
>> Now, there the issue for me was that the Label text did not change once when 
>> I typed text into the presented textfield.
>> Even when I changed the method from 'whenTextIsAccepted:' to 
>> 'whenTextChanged:'.
>> Is this intended or is this an issue with Spec?
>> 
>> Also, it is not clear to me what 'accepting' text means (maybe I didn't look 
>> thoroughly enough).
>> The method comment just states that it is called when the text is accepted.
>> Which is kind of self referential ;-)
>> 
>> The OS X Pharo versions I used for testing where newly downloaded Pharo 2.0 
>> and 3.0 from about 2 weeks ago.
>> They were downloaded from here:
>> http://files.pharo.org/platform/Pharo2.0-mac.zip
>> http://files.pharo.org/platform/Pharo3.0-mac.zip
>> 
>> Best,
>> Manfred
> 
> 
> 



Re: [Pharo-users] Spec Question

2013-10-24 Thread Manfred Kröhnert
Hello Ben and Clément,

thanks for the quick reply.
But even when I hit Cmd+s the Text of the label stays the same and the
button is not enabled.
No matter if I use 'whenTextChanged:' or 'whenTextIsAccepted:'.

I only tested this in the Pharo 2.0 image.

Best,
Manfred






On Thu, Oct 24, 2013 at 2:22 PM, Clément Bera wrote:

> Hey,
>
> Accepting a text usually means the is compiled. To accept a text, right
> click on it, then click accept in the contextual menu (at the bottom). You
> can also do it with Cmd+s on Mac.
>
> Try again and tell us if the #whenTextIsAccepted: works fine in your
> image or not.
>
> Best,
>
>
>
> 2013/10/24 Benjamin 
>
>> Text is accepted when you “save” it (cmd+s)
>>
>> Ben
>>
>> On 24 Oct 2013, at 14:05, Manfred Kröhnert 
>> wrote:
>>
>> Hi everyone,
>>
>> I finally got around to check back on a Spec question that popped up
>> about two weeks ago.
>>
>> At that time I was giving Spec a first try and gathered information from
>> a couple of sources.
>> One of them was the draft chapter about Spec from the Pharo for the
>> Enterprise book.
>>
>>
>> https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/ws/Spec/Spec.pier.pdf/*view*/
>>
>> The example has the following method:
>>
>> TestSpec>>initializePresenter
>> example whenTextIsAccepted: [ changes text: 'The text Changed'. 
>> acceptChanges enable ].
>>
>>
>> This should change the text of the 'changes' LabelModel when the text in the 
>> 'example' TextModel is accepted.
>>
>>
>> Now, there the issue for me was that the Label text did not change once
>> when I typed text into the presented textfield.
>> Even when I changed the method from 'whenTextIsAccepted:' to
>> 'whenTextChanged:'.
>> Is this intended or is this an issue with Spec?
>>
>> Also, it is not clear to me what 'accepting' text means (maybe I didn't
>> look thoroughly enough).
>> The method comment just states that it is called when the text is
>> accepted.
>> Which is kind of self referential ;-)
>>
>> The OS X Pharo versions I used for testing where newly downloaded Pharo
>> 2.0 and 3.0 from about 2 weeks ago.
>> They were downloaded from here:
>> http://files.pharo.org/platform/Pharo2.0-mac.zip
>> http://files.pharo.org/platform/Pharo3.0-mac.zip
>>
>> Best,
>> Manfred
>>
>>
>>
>


Re: [Pharo-users] Spec Question

2013-10-24 Thread Clément Bera
Hey,

Accepting a text usually means the is compiled. To accept a text, right
click on it, then click accept in the contextual menu (at the bottom). You
can also do it with Cmd+s on Mac.

Try again and tell us if the #whenTextIsAccepted: works fine in your image
or not.

Best,



2013/10/24 Benjamin 

> Text is accepted when you “save” it (cmd+s)
>
> Ben
>
> On 24 Oct 2013, at 14:05, Manfred Kröhnert 
> wrote:
>
> Hi everyone,
>
> I finally got around to check back on a Spec question that popped up about
> two weeks ago.
>
> At that time I was giving Spec a first try and gathered information from a
> couple of sources.
> One of them was the draft chapter about Spec from the Pharo for the
> Enterprise book.
>
>
> https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/ws/Spec/Spec.pier.pdf/*view*/
>
> The example has the following method:
>
> TestSpec>>initializePresenter
> example whenTextIsAccepted: [ changes text: 'The text Changed'. 
> acceptChanges enable ].
>
>
> This should change the text of the 'changes' LabelModel when the text in the 
> 'example' TextModel is accepted.
>
> Now, there the issue for me was that the Label text did not change once
> when I typed text into the presented textfield.
> Even when I changed the method from 'whenTextIsAccepted:' to
> 'whenTextChanged:'.
> Is this intended or is this an issue with Spec?
>
> Also, it is not clear to me what 'accepting' text means (maybe I didn't
> look thoroughly enough).
> The method comment just states that it is called when the text is accepted.
> Which is kind of self referential ;-)
>
> The OS X Pharo versions I used for testing where newly downloaded Pharo
> 2.0 and 3.0 from about 2 weeks ago.
> They were downloaded from here:
> http://files.pharo.org/platform/Pharo2.0-mac.zip
> http://files.pharo.org/platform/Pharo3.0-mac.zip
>
> Best,
> Manfred
>
>
>


Re: [Pharo-users] Spec Question

2013-10-24 Thread Benjamin
Text is accepted when you “save” it (cmd+s)

Ben

On 24 Oct 2013, at 14:05, Manfred Kröhnert  wrote:

> Hi everyone,
> 
> I finally got around to check back on a Spec question that popped up about 
> two weeks ago.
> 
> At that time I was giving Spec a first try and gathered information from a 
> couple of sources.
> One of them was the draft chapter about Spec from the Pharo for the 
> Enterprise book.
> 
> https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/ws/Spec/Spec.pier.pdf/*view*/
> 
> The example has the following method:
> 
> TestSpec>>initializePresenter
> example whenTextIsAccepted: [ changes text: 'The text Changed'. 
> acceptChanges enable ].
> 
> This should change the text of the 'changes' LabelModel when the text in the 
> 'example' TextModel is accepted.
> 
> Now, there the issue for me was that the Label text did not change once when 
> I typed text into the presented textfield.
> Even when I changed the method from 'whenTextIsAccepted:' to 
> 'whenTextChanged:'.
> Is this intended or is this an issue with Spec?
> 
> Also, it is not clear to me what 'accepting' text means (maybe I didn't look 
> thoroughly enough).
> The method comment just states that it is called when the text is accepted.
> Which is kind of self referential ;-)
> 
> The OS X Pharo versions I used for testing where newly downloaded Pharo 2.0 
> and 3.0 from about 2 weeks ago.
> They were downloaded from here:
> http://files.pharo.org/platform/Pharo2.0-mac.zip
> http://files.pharo.org/platform/Pharo3.0-mac.zip
> 
> Best,
> Manfred



[Pharo-users] Spec Question

2013-10-24 Thread Manfred Kröhnert
Hi everyone,

I finally got around to check back on a Spec question that popped up about
two weeks ago.

At that time I was giving Spec a first try and gathered information from a
couple of sources.
One of them was the draft chapter about Spec from the Pharo for the
Enterprise book.

https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/ws/Spec/Spec.pier.pdf/*view*/

The example has the following method:

TestSpec>>initializePresenter
example whenTextIsAccepted: [ changes text: 'The text Changed'.
acceptChanges enable ].


This should change the text of the 'changes' LabelModel when the text
in the 'example' TextModel is accepted.

Now, there the issue for me was that the Label text did not change once
when I typed text into the presented textfield.
Even when I changed the method from 'whenTextIsAccepted:' to
'whenTextChanged:'.
Is this intended or is this an issue with Spec?

Also, it is not clear to me what 'accepting' text means (maybe I didn't
look thoroughly enough).
The method comment just states that it is called when the text is accepted.
Which is kind of self referential ;-)

The OS X Pharo versions I used for testing where newly downloaded Pharo 2.0
and 3.0 from about 2 weeks ago.
They were downloaded from here:
http://files.pharo.org/platform/Pharo2.0-mac.zip
http://files.pharo.org/platform/Pharo3.0-mac.zip

Best,
Manfred