Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!das-news.harvard.edu!news2.near.net!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!cs.utexas.edu!csc.ti.com!news.ti.com!ticipa!clw
From: clw@ticipa.pac.sc.ti.com (Chris Winemiller)
Subject: Re: Newbe HELP
Message-ID: <1994Oct11.143328.463@ticipa.pac.sc.ti.com>
Organization: Texas Instruments Enterprise Solutions Division
References: <9410102046.AA17219@sci.brooklyn.cuny.edu>
Date: Tue, 11 Oct 1994 14:33:28 GMT
Lines: 26

In article <9410102046.AA17219@sci.brooklyn.cuny.edu> Gerald Weiss 718-951-5945 <weiss@SCI.BROOKLYN.CUNY.EDU> writes:
>Could anyone explain why the second of these following two fragments works
>while the first gives me a 'Does Not Understand' of 'nextPutAll:'?
>
>I am running Smalltalk/V Windows. I have examined the offending message
>using the Walkback/Debugger; the receiver is a 'TextWindow' and
>the selector 'nextPutAll:' both of which seem correct.
>
>
>"Results in Does not Understand"
>TextWindow
>        windowLabeled: 'A Window'
>        frame: (20 @ 20 corner: 200 @ 200);
>    nextPutAll: 'Hello'

The receiver of the #nextPutAll: message is TextWindow (the class!), not
the _instance_ of TextWindow created by #windowLabeled:frame:.  That's
why it doesn't work.

Chris
-- 
==============================================================
Chris Winemiller               Internet: clw@works.ti.com
Disclaimer: I do not speak for TI.
==============================================================

