[Newbies] Howto initialize class variables

2010-03-20 Thread Alex Schenkman
Hi List! I'm playing with class variables. How should I initialize them? I've tried with the class method initialize but it does not do the job. Pirulo classinitialize super initialize. myClassVar := Dictionary new at: 'one' put: 1. Thanks in advance!

Re: [Newbies] Howto initialize class variables

2010-03-20 Thread Bert Freudenberg
On 20.03.2010, at 09:46, Alex Schenkman wrote: Hi List! I'm playing with class variables. How should I initialize them? I've tried with the class method initialize but it does not do the job. Pirulo classinitialize super initialize. myClassVar := Dictionary new at: 'one' put: 1.

Re: [Newbies] Howto initialize class variables

2010-03-20 Thread Alex Schenkman
Bert your are super! * never call super initialize on the class side Why? I thought it was polite to do it, =) On Sat, Mar 20, 2010 at 10:10, Bert Freudenberg b...@freudenbergs.dewrote: On 20.03.2010, at 09:46, Alex Schenkman wrote: Hi List! I'm playing with class variables. How should

Re: [Newbies] Howto initialize class variables

2010-03-20 Thread Randal L. Schwartz
Alex == Alex Schenkman a...@schenkman.info writes: Alex Bert your are super! Alex * never call super initialize on the class side Alex Why? I thought it was polite to do it, =) It breaks things by double initializing them. The code loaders run initialize automatically. So when the parent

Re: [Newbies] a titleize function?

2010-03-20 Thread David T. Lewis
On Fri, Mar 19, 2010 at 02:31:40AM -0400, sergio_101 wrote: is there a function that can do this: 'a mouse ate cheese' . 'A Mouse Ate Cheese' i found capitlize, but that only hits the first word.. Here is another way to do it: Stringtitleize Answer a copy of myself with the first

Re: [Newbies] a titleize function?

2010-03-20 Thread David T. Lewis
I should note also that class Character has methods for testing different kinds of characters (#isDigit and so forth). So if you wanted your method to work for strings that might contain tab characters or carriage returns as separator characters between words, then you would use the #isSeparator

[Newbies] determining file size?

2010-03-20 Thread Van Upboy
Hi, I'm listing files in a directory, but I want to show more than just the filename (like file size and may be creation date). I've searched for some time on the Internet, but I can't find the answer. How to do this? I've tried this: aFile := (FileDirectory default directoryNamed:

Re: [Newbies] determining file size?

2010-03-20 Thread K. K. Subramaniam
On Saturday 20 March 2010 09:02:32 pm Van Upboy wrote: I'm listing files in a directory, but I want to show more than just the filename (like file size and may be creation date). I've searched for some time on the Internet, but I can't find the answer. How to do this? File size is an attribute

Re: [Newbies] Howto initialize class variables

2010-03-20 Thread David T. Lewis
On Sat, Mar 20, 2010 at 10:10:10AM +0100, Bert Freudenberg wrote: On 20.03.2010, at 09:46, Alex Schenkman wrote: Hi List! I'm playing with class variables. How should I initialize them? I've tried with the class method initialize but it does not do the job. Pirulo classinitialize

[Newbies] Drag and Drop problem

2010-03-20 Thread FrankBz
Hello everyone, I would like to have a Morph which according to different colored morphs dragged into it, responds with different actions. For example, if the dragged morph is blue, the container morph should change its background color, otherwise it should do nothing. So far I was able to have a

Re: [Newbies] a titleize function?

2010-03-20 Thread John McKeon
A correct titlization will not capitalize small words (articles, prepositions etc). This is probably overkill but I've got parser madness and just could not help myself =) The attached mcz package will require Lukas Renggli's PetitParser from the repository at http://source.lukas-renggli.ch/petit

Re: [Newbies] Drag and Drop problem

2010-03-20 Thread Bert Freudenberg
On 20.03.2010, at 20:47, FrankBz wrote: Hello everyone, I would like to have a Morph which according to different colored morphs dragged into it, responds with different actions. For example, if the dragged morph is blue, the container morph should change its background color, otherwise it

Re: [Newbies] a titleize function?

2010-03-20 Thread Bert Freudenberg
On 20.03.2010, at 21:05, John McKeon wrote: A correct titlization will not capitalize small words (articles, prepositions etc). This is probably overkill but I've got parser madness and just could not help myself =) Seems like overkill for the beginners list indeed ;) Besides, the only