newbie question

Bob Arning arning at
Fri Feb 28 19:21:11 UTC 2003

On Fri, 28 Feb 2003 11:09:31 -0800 (PST) j s <arf_arf69 at> wrote:
>	| w aa |
>	w _	MyListMorph new.
>	aa _	w myOtherMenu.
>	w	 initialize:  aa  x: 800 y: 600.
>	w	openView.
>Why does the class method return the collection but 
>the instance method does not.  Is the instance not 
>created after the [new] message even before the 
>[initialize:x:y:] message?
>How would I write a single line command that works 
>with an instance method?

Well, if you really want it on one line, you could do this

	(w _ MyListMorph new) initialize: w myOtherMenu x: 800 y: 600; openView


More information about the Squeak-dev mailing list