[squeak-dev] access to sender from within invoked method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] access to sender from within invoked method

Casey Ransberger
Is there a way to get a reference to the sender of a message from within a method without explicitly adding a parameter and passing in self?

--
Ron


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] access to sender from within invoked method

Ricardo Moran
I believe you can do that with:

thisContext client

I don't know if there is a better way, though...


On Sat, Sep 12, 2009 at 10:57 PM, Ronald Spengler <[hidden email]> wrote:
Is there a way to get a reference to the sender of a message from within a method without explicitly adding a parameter and passing in self?

--
Ron






Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] access to sender from within invoked method

Eliot Miranda-2


On Sat, Sep 12, 2009 at 7:17 PM, Ricardo Moran <[hidden email]> wrote:
I believe you can do that with:

thisContext client

N.B. within a block you'll need to use thisContext home client to get at the sender of the outer message.
 

I don't know if there is a better way, though...


On Sat, Sep 12, 2009 at 10:57 PM, Ronald Spengler <[hidden email]> wrote:
Is there a way to get a reference to the sender of a message from within a method without explicitly adding a parameter and passing in self?

--
Ron