Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Stephan Eggermont
On 18-06-15 13:35, Damien Cassou wrote: Stephan Eggermont step...@stack.nl writes: ApplicationTreeModelAdapterchildrenFor: anObject ^mapping at: anObject ApplicationTreeModelAdapterchildrenFor: anObject ^(mapping at: anObject class) value: anObject the same method with 2

[Pharo-users] Athens and radial gradient

2015-06-18 Thread Matthieu Lacaton
Hello, I wanted to use Athens API to define a radial gradient and I saw that the class RadialGradientPaint only had one radius as instance variable and it seemed to me it was passed as the end radius while the start radius was set to 0. Does it mean that if I want to define a start radius

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Damien Cassou
Stephan Eggermont step...@stack.nl writes: ApplicationTreeModelAdapterchildrenFor: anObject ^mapping at: anObject ApplicationTreeModelAdapterchildrenFor: anObject ^(mapping at: anObject class) value: anObject the same method with 2 different behaviors. -- Damien Cassou

Re: [Pharo-users] What would be the first code snippet you would show

2015-06-18 Thread Dmitri Zagidulin
Stef: +1 about using somethign with ZnClient. Manipulating web pages (getting data, or filling out forms) is something all students can understand and get excited about (versus some of the other traditional code snippets in books). Sven: Wow, nice link! Those are excellent snippets. On Wed, Jun

Re: [Pharo-users] World lastKeystroke and openInWorld: aPasteUpMorph

2015-06-18 Thread Markus Schlager
On Tue, 16 Jun 2015, Hilaire wrote: Off topic, but I am curious as a teacher: how old the pupils you are teaching to? I use Etoys or Scratch in grade 7 (age about 12 years) and Smalltalk in grade 10 (age about 15/16 years). They are attending regular Informatik-courses at Gymnasium,

Re: [Pharo-users] Woden not loading anymore

2015-06-18 Thread Alexandre Bergel
Thanks Stephan to had a look at this Cheers, Alexandre On Jun 18, 2015, at 7:11 PM, Stephan Eggermont step...@stack.nl wrote: On 18-06-15 10:12, Lusa Nicolas wrote: it was a while that I wasn't updating the woden version that I am using in my project, so today I thought to give it a try

Re: [Pharo-users] Woden not loading anymore

2015-06-18 Thread Stephan Eggermont
On 18-06-15 10:12, Lusa Nicolas wrote: it was a while that I wasn't updating the woden version that I am using in my project, so today I thought to give it a try and see if there was something new. And now I am not able to load woden anymore, what I get is the following error message: Error:

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Peter Uhnák
And of couirse FsmIconVisitor is not enough, because TreeModel (menu) might need different icons than someone else So, perhaps the question boils down to: How to add meta-description to object from another package without affecting the object's protocol or code? For example Roassal's

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Nicolai Hess
2015-06-18 7:23 GMT+02:00 Peter Uhnák i.uh...@gmail.com: Hi, I would like to describe some additional behavior for objects when they are interacting with another objects. The prime example is GTInspector; by default to add presentation you implement a method with

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Peter Uhnák
The worry is caused by the fact that I do not want to pollute the protocol; this is not just about GTInspector, but also about other classes such as the TreeModel. So, imagine following hierarchy; there are some base classes and then unlimited number of packages, each with their own hierarchy.

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Peter Uhnák
I don't fully understand the TreeModel example, what would your tool do with all the men/displayBlock/childrenBlock ... - methods? Ah, I should've explained what TreeModel is; it is a Spec UI widget to display tree-like structures: ​ So the way this works is that I give the TreeModel

Re: [Pharo-users] Monticello / OS deadlock ?

2015-06-18 Thread Jose San Leandro
Hi, So far it works perfect. I'll let you know if it happens again. Thank you very much! 2015-06-11 23:28 GMT+02:00 Thierry Goubier thierry.goub...@gmail.com: Hi Jose, I have pushed a new version of GitFileTree (the development version for Pharo4) with a complete rewrite of the underlying

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Nicolai Hess
2015-06-18 8:37 GMT+02:00 Peter Uhnák i.uh...@gmail.com: The worry is caused by the fact that I do not want to pollute the protocol; this is not just about GTInspector, but also about other classes such as the TreeModel. So, imagine following hierarchy; there are some base classes and then

[Pharo-users] Woden not loading anymore

2015-06-18 Thread Lusa Nicolas
Hi, it was a while that I wasn't updating the woden version that I am using in my project, so today I thought to give it a try and see if there was something new. And now I am not able to load woden anymore, what I get is the following error message: Error: Name not found:

Re: [Pharo-users] Monticello / OS deadlock ?

2015-06-18 Thread Thierry Goubier
2015-06-18 10:32 GMT+02:00 Jose San Leandro jose.sanlean...@osoco.es: Hi, So far it works perfect. I'll let you know if it happens again. Thanks. Thank you very much! You're welcome. Just a question: which version of the vm are you using? Or which zeroconf scripts are you using to

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Christophe Demarey
Why not try to use TreeNodeModel to define different kind of nodes? On each node you can redefine the way to get children, the icon, etc. Then you give these nodes as the tree roots. Le 18 juin 2015 à 10:10, Peter Uhnák a écrit : I don't fully understand the TreeModel example, what would

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Stephan Eggermont
childrenFor: anObject | col name | ^ApplicationTreeModelAdapter sharedInstance childrenFor: anObject ApplicationTreeModelAdapterchildrenFor: anObject ^mapping at: anObject ApplicationTreeModelAdapterregister: aOneParameterBlock at: aClass mappaing at: aClass put:

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Stephan Eggermont
Wake up before posting childrenFor: anObject | col name | ^ApplicationTreeModelAdapter sharedInstance childrenFor: anObject ApplicationTreeModelAdapterchildrenFor: anObject ^mapping at: anObject ApplicationTreeModelAdapterregister: aOneParameterBlock at: aClass mapping at: aClass

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Tudor Girba
Hi Peter, I am not sure I understand. Is the worry caused by the fact that when there are multiple gtInspector* methods then the API would get polluted? Cheers, Doru On Thu, Jun 18, 2015 at 7:35 AM, Peter Uhnák i.uh...@gmail.com wrote: Also the problem with visitor here is that I would