Morph>>Delete
Aaron J Reichow
reic0024 at D.UMN.EDU
Wed Aug 27 04:24:40 UTC 2003
On Tue, 26 Aug 2003, Avi Bryant wrote:
> The mouseDown: method he's implementing is on a button, not on an instance
> of JeffsTestMorph. So "self" is not, in fact, what he wants.
D'oh, I wasn't paying attention.
So, Jeff, you'd need some way to refer to your particular instance.
> > 2. The format for specifying a message is Class>>#message ; that is your
> > message should have read Morph>>#delete.
>
> Really? I use #delete to talk about the message, but Morph>>delete to
> talk about a particular method.
The convention is to use the #. It's kind of neat actually- do a
print-it on "Morph>>#delete" in a workspace- the CompiledMethod for that
method is returned. #delete can be passed (a symbol), and delete cannot.
Regards,
Aaron
More information about the Squeak-dev
mailing list
|