Is there a way to determine &quot;who&quot; called &quot;me&quot; in a method?&nbsp; Or would doing this just be bad form?<br><br>I have a method in an object that creates another object FOR the sender.&nbsp; Rather than pass a parameter, it seemed like it would be nice to just &quot;know&quot; who was asking for the component.<br>
<br>For example, rather than<br><br>MyObject&gt;&gt;doSomething<br>&nbsp;&nbsp;&nbsp;&nbsp; WidgetBuilderSubclass buildComponentForObject: self anObject.<br><br>it would be nice to just<br><br>MyObject&gt;&gt;doSomething<br>&nbsp;&nbsp;&nbsp;&nbsp; WidgetBuilderSubclass buildComponent<br>
<br>and have<br><br>WidgetBuilderSubclass&gt;&gt;buildComponent<br>&nbsp;&nbsp;&nbsp;&nbsp; | obj widget |<br>&nbsp;&nbsp;&nbsp;&nbsp; obj := self thisMessageSender anObject.<br>&nbsp;&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp;&nbsp; ^widget<br><br>I am probably asking a question that shows just how much I don&#39;t understand &quot;the Smalltalk way!&quot;<br>
<br>Thanks,<br><br>Rob<br><br>