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!
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.
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
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
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
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
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:
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
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
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
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
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
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
13 matches
Mail list logo