[Newbies] Re: Re: Growing image

2006-11-29 Thread Klaus D. Witzel

Hi Norbert,

you may want to put one of your app names {seaside. magritte. magma} and  
one of the class names into google search. The search result connects you  
immediately to the collective knowledge of the Squeak community, example:


- http://www.google.com/search?q=weakarray+seaside

Besides of that, you can look for class references and find the guilty who  
send #new or #new: to one of the classes.


/Klaus

On Wed, 29 Nov 2006 13:00:59 +0100, Norbert Hartl [EMAIL PROTECTED]  
wrote:



On Wed, 2006-11-29 at 01:52 +0100, Klaus D. Witzel wrote:

Hi Norbert,

the tool is Smalltalk, just inspect

(((Smalltalk allClasses collect: [:each | each name - each  
instanceCount

])
reject: [:each | each value = 0])
asSortedCollection: [:a :b | b value  a value]) asArray

This gives # of objects per class, in a nice GUI :-)


Thanks, this is quite good. I have now a statistic like:

246565 WeakArray
241929 WeakKeyAssociation
179848 ByteString
171165 Array
159003 Association
130254 WeakValueAssociation

What is the best way to determine where this instances are
referenced. Do I have to use PointerFinder or Smalltalk
browseAllObjectReferencesTo: or is there better way?

thanks for your help, this goes also to Ramon and David.
You are very helpful, guys.

Norbert



___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Re: Re: Growing image

2006-11-29 Thread Ramiro Diaz Trepat

Hello Norbert,
  Have you seen the Cleaning up junk swiki page?
  http://minnow.cc.gatech.edu/squeak/2176

  I hope it helps.


  r.
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] Stop a script for a second

2006-11-29 Thread Martin Bleichner

Hi together,

I am new to this list. So perhaps I should introduce myself. I am 25 year
old german student studying  congitive neuroscience  in Utrecht/Netherlands.
I want to use squeak /etoys mainly for exploring and visualizing some ideas
in a quick way.

Right now I want to build a prototype for an experiment and  think that this
is a good project to learn a bit more about squeak.

I want to program a sequence of objects appearing on different positions on
the screen one after the other and later in a random order.
A very dirty way to do so is just script doing something like.
object1 show.
script wait for 1000ms.
object1 hide
object2 show
script wait for 1000ms.

I know that this is a very basic question but couldn't find the answer, as I
don't know what it is I am looking for.

thanks a lot

martin
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Stop a script for a second

2006-11-29 Thread Bert Freudenberg

On Nov 29, 2006, at 19:17 , Martin Bleichner wrote:


Hi together,

I am new to this list. So perhaps I should introduce myself. I am  
25 year old german student studying  congitive neuroscience  in  
Utrecht/Netherlands. I want to use squeak /etoys mainly for  
exploring and visualizing some ideas in a quick way.


Right now I want to build a prototype for an experiment and  think  
that this is a good project to learn a bit more about squeak.


I want to program a sequence of objects appearing on different  
positions on the screen one after the other and later in a random  
order.

A very dirty way to do so is just script doing something like.
object1 show.
script wait for 1000ms.
object1 hide
object2 show
script wait for 1000ms.

I know that this is a very basic question but couldn't find the  
answer, as I don't know what it is I am looking for.


Waiting inside a script is not supported in this version of etoys.  
What you can do instead is this:


script ticking once a second, for an object with a variable named i
 * increase i by 1
 * Test i = 1 Yes: obj1 show
 * Test i = 2 Yes: obj1 hide, obj2 show
 * Test i = 3 Yes: set i to 0


- Bert -


___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] notation

2006-11-29 Thread Another Dave

I'm having trouble understanding the ''  in some Smalltalk programs, Such
as this, from Smalltalk By Example:

MyClassdoThis
 array := Array new: 3.
 array at: 1 put: 2.

I can understand that we are creating a new 3-place instance of Array, named
array, and putting 2 in the first slot. But I don't understand what MyClass,
, or doThis are doing.



-- 
View this message in context: 
http://www.nabble.com/%3E%3E-notation-tf2729086.html#a7612000
Sent from the Squeak - Beginners mailing list archive at Nabble.com.

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] notation

2006-11-29 Thread Another Dave

(nil asTraitComposition) print it returns a MessageNotUnderstood dialog. 

(Object#doesNotUnderstand:) print it returns a System Window(3891), and a
CompiledMethod dialog.

I'm probably being too literal, or too dense? 




-- 
View this message in context: 
http://www.nabble.com/%3E%3E-notation-tf2729086.html#a7613900
Sent from the Squeak - Beginners mailing list archive at Nabble.com.

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] notation

2006-11-29 Thread stephane ducasse

Dave normally

 is not part of a method definition.

Just the what is after it. in the browser.
 is used by authors to give contextual information.

Now in Squeak you can do

Point#x to get the compiled method x of class Point
but this is query the meta information of classes.

Stef


On 30 nov. 06, at 06:32, Another Dave wrote:



(nil asTraitComposition) print it returns a MessageNotUnderstood  
dialog.


(Object#doesNotUnderstand:) print it returns a System Window 
(3891), and a

CompiledMethod dialog.

I'm probably being too literal, or too dense?




--
View this message in context: http://www.nabble.com/%3E%3E-notation- 
tf2729086.html#a7613900

Sent from the Squeak - Beginners mailing list archive at Nabble.com.

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners



___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] notation

2006-11-29 Thread Stuart Herring

On 11/30/06, Another Dave [EMAIL PROTECTED] wrote:


I'm having trouble understanding the ''  in some Smalltalk programs, Such
as this, from Smalltalk By Example:

MyClassdoThis
 array := Array new: 3.
 array at: 1 put: 2.

I can understand that we are creating a new 3-place instance of Array, named
array, and putting 2 in the first slot. But I don't understand what MyClass,
, or doThis are doing.


The  is just a way of indicating that you're talking about a message name.

In your example, MyClass is the class name, and doThis is the message
name.  You'll never actually enter the  when defining a message,
instead you'd put the code in the doThis message of MyClass in the
browser.

Regards,
Stuart.
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners