Re: [Newbies] SimpleSliderMorph target setting question.

2008-11-24 Thread K. K. Subramaniam
On Friday 21 Nov 2008 7:04:21 am Tim Patti wrote: The above code works in the workspace and transcript, but I cannot figure out how to point the SimpleSliderMorph target to my instance si.  Tried all kind of combinations with no luck Turn on create textual references to dropped morphs in

Re: [Newbies] closed and open interval

2008-11-24 Thread Bert Freudenberg
On 24.11.2008, at 15:03, Cédrick Béler wrote: Hi Is there an existing data structure that allow to represent interval with either open or closed ends like [1 ; 10[. Class Interval is closed: 1 to: 10 I don't think there is an open interval class. - Bert -

Re: [Newbies] closed and open interval

2008-11-24 Thread Marcelo Barbosa
Hello Squeak has Interval that represents interval with closed ends. See the samples below: (Interval from: 1 to: 10) includes: 2 -- true (Interval from: 1 to: 10) includes: 10 -- true (Interval from: 1 to: 10) includes: 11 -- false 2008/11/24 Cédrick Béler [EMAIL PROTECTED] Hi Is there an

Re: [Newbies] SimpleSliderMorph target setting question.

2008-11-24 Thread Tim Patti
Thanks to all who replied to my SimpleSliderMorph question. I was trying to set the target with the the inspector window as a quick way to test my program. Got things working now, thanks! Tim ___ Beginners

Re: [Newbies] closed and open interval

2008-11-24 Thread Filip Malczak
You can always make subclass of Interval for example OpenedInterval , add two variables: left and right.Make new methods: OpenedIntervalfrom: aNumber to: aNumber left: aBoolean OpenedIntervalfrom: aNumber to: aNumber right: aBoolean OpenedIntervalfrom: aNumber to: aNumber left: aBoolean right:

Re: [Newbies] closed and open interval

2008-11-24 Thread Randal L. Schwartz
Filip == Filip Malczak [EMAIL PROTECTED] writes: Filip You can always make subclass of Interval for example OpenedInterval , add Filip two variables: left and right.Make new methods: OpenedInterval from: aNumber to: aNumber left: aBoolean OpenedInterval from: aNumber to: aNumber right: aBoolean

Re: [Newbies] closed and open interval

2008-11-24 Thread Randal L. Schwartz
Bert == Bert Freudenberg [EMAIL PROTECTED] writes: Bert On 24.11.2008, at 17:46, Randal L. Schwartz wrote: Filip == Filip Malczak [EMAIL PROTECTED] writes: Filip You can always make subclass of Interval for example OpenedInterval , add Filip two variables: left and right.Make new methods:

Re: [Newbies] closed and open interval

2008-11-24 Thread Cédrick Béler
Thanks all for these answers... I should have precised I knew about Interval ;) But you answered all and more. I wanted to be sure they were no existing implementation of it. I was also imaginating an implementation of a special kind of interval (closed + open ends). I have some questions: -

Re: [Newbies] closed and open interval

2008-11-24 Thread Bert Freudenberg
On 24.11.2008, at 18:36, Randal L. Schwartz wrote: Bert == Bert Freudenberg [EMAIL PROTECTED] writes: Bert On 24.11.2008, at 17:46, Randal L. Schwartz wrote: Filip == Filip Malczak [EMAIL PROTECTED] writes: Filip You can always make subclass of Interval for example OpenedInterval ,

Re: [Newbies] Problem with text editor

2008-11-24 Thread Herbert König
Hello Alex, AC I am trying to design my first GUI using text editor and AC input field. But I'm a bit confuse on how to append the user input AC text to text editor in the next line without replacing the current AC value of text editor. this is not clear to me. AC Basically I'm trying to list

Re: [Newbies] closed and open interval

2008-11-24 Thread Cédrick Béler
(0 to: 1) by: 0.25 equivalent to: # ([0 0,25[ [0 0,5[ [0 0,75[ [0 1]) Of course, I meant: (0 to: 1) by 0.25 -- #( [0 0,25[ [0,25 0,5[ [0,5 0,75[ [0,75 1]) an array of interval, ie. a discretized interval (0 to: 1) leftOpen by: 0.25 -- #( ]0 0,25[

Re: [Newbies] closed and open interval

2008-11-24 Thread Bert Freudenberg
On 24.11.2008, at 17:46, Randal L. Schwartz wrote: Filip == Filip Malczak [EMAIL PROTECTED] writes: Filip You can always make subclass of Interval for example OpenedInterval , add Filip two variables: left and right.Make new methods: OpenedInterval from: aNumber to: aNumber left: aBoolean

Re: [Newbies] closed and open interval

2008-11-24 Thread Filip Malczak
Hmm... When you were talking I wasnt aware of discussion and made up some basis for this subclass. I send it with this mail. Now Im gonna work on Intervals arithmetics to each other, for example: OpenedInterval from: 1 to: 5 right: true sumWith Interval from: 5 to: 8 should give Interval (or

Re: [Newbies] closed and open interval

2008-11-24 Thread Filip Malczak
2008/11/24 Cédrick Béler [EMAIL PROTECTED] Interval - I represent a finite arithmetic progression. What about infinite arithmetic progression ? ;) Can a collection contain an infinite number of elements... ? [0 1[ could represent the collection of **all number** between 0 and 1 excluded.

[Newbies] RE: problem with text editor

2008-11-24 Thread Alex Chi
Hi Herbert, Sorry for not being so clear. I'm trying to design a GUI using input field where user will input their name and the other part of the GUI is like another text field to display all the list of user input. Let's say user input name: Lisa and hit enter button, the GUI will display:

Re: [Newbies] closed and open interval

2008-11-24 Thread Cédrick Béler
What do you need it for? As you can see in methods for Interval - there are two tests for include : rangeIncludes and valueIncludes (includes is both of them connected). First checks if a number is beetween borders and second if its enumerated (with stepping). In deed it contains both:

Re: [Newbies] closed and open interval

2008-11-24 Thread Michael van der Gulik
On Tue, Nov 25, 2008 at 5:46 AM, Randal L. Schwartz [EMAIL PROTECTED]wrote: Filip == Filip Malczak [EMAIL PROTECTED] writes: Filip You can always make subclass of Interval for example OpenedInterval , add Filip two variables: left and right.Make new methods: OpenedInterval from: aNumber

Re: [Newbies] Re: Hi there! (and my first problem)

2008-11-24 Thread Michael van der Gulik
On Tue, Nov 25, 2008 at 5:25 AM, Filip Malczak [EMAIL PROTECTED] wrote: 2008/11/23 Filip Malczak [EMAIL PROTECTED] Hi, Im Filip, and Im new at squeak. Ive read 'Squeak by example', and now I try to make my first program. Ive already written in Pascal and a bit (really small bit) of C. Im

[Newbies] Re: closed and open interval

2008-11-24 Thread nicolas cellier
Randal L. Schwartz a écrit : Filip == Filip Malczak [EMAIL PROTECTED] writes: Filip You can always make subclass of Interval for example OpenedInterval , add Filip two variables: left and right.Make new methods: OpenedInterval from: aNumber to: aNumber left: aBoolean OpenedInterval from:

Re: [Newbies] Re: Hi there! (and my first problem)

2008-11-24 Thread Filip Malczak
Thanks ;) In deed - I found it out yesterday evening, but couldnt try (I just thought of the whole structure ;) ). Once again: thanks. 2008/11/24 Michael van der Gulik [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 5:25 AM, Filip Malczak [EMAIL PROTECTED] wrote: 2008/11/23 Filip Malczak [EMAIL