[Newbies] Re: Should all methods return a value?

2006-05-08 Thread Jeroen van Hilst
Charles, Im a beginner myself, but i think i know the answer to this one... ;) As far as i know every method returns a value. If you do not explicitly return a value ^self is returned. BTW i love this list, and ive learned very much already from it. Keep up the good work all! - Jeroen "C

[Newbies] how to create an object (of a selection of classes)

2006-06-22 Thread Jeroen van Hilst
Best List, Im very curious to the the 'smalltalk way' to write the following code: | shape morph | (2 atRandom == 1) ifTrue: [shape := RectangleMorph] ifFalse: [shape := EllipseMorph]. morph := shape new. I've tried something like: (#(EllipseMorph RectangleMorph) at: (2 atRandom)) new. But tha

[Newbies] Re: how to create an object (of a selection of classes)

2006-06-22 Thread Jeroen van Hilst
Benjamin, {EllipseMorph. RectangleMorph} atRandom new. Is a nice solution. Thanky you for your very helpfull answer. - Jeroen "Benjamin Schroeder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Jun 22, 2006, at 7:07 PM, Jeroen van Hilst wrote: >

[Newbies] Re: Setting Breakpoints to Read Code

2007-05-04 Thread Jeroen van Hilst
Aditya, You can put this inside any method: self halt. "Will show up a stack trace" - Jeroen "Aditya Siram" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > I am new to Squeak and its debugging interface. I am trying to get a handle > on Seaside by setting breakpoint

[Newbies] Re: Parse an argument for a symbol that requires one

2008-03-03 Thread Jeroen van Hilst
"Marcus Strehlow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > > self target: aTarget > actionSelector: #someAction. > > And it works. But what if not only an action should be executed, what if > the actionSelector gets a symbol that requires an argument? Marcus,