<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sean P. DeNigris wrote:
<blockquote cite="mid:1325289247017-4247218.post@n4.nabble.com"
 type="cite">
  <pre wrap="">James O'Brien-3 wrote
  </pre>
  <blockquote type="cite">
    <pre wrap="">SimpleButtonMorph's class comment, would the target be the TextMorph? If 
so, how is the correct TextMorph identified if there are two or more of 
them?

    </pre>
  </blockquote>
  <pre wrap=""><!---->
Yes, you'd need access to the TextMorph instance, and write something like:
button := SimpleButtonMorph newWithLabel: 'change text'.
button
        target: tm;
                actionSelector: #contents:;
                arguments: #('new text'); 
                openInWorld

If you didn't create the TextMorph and can't get access to it, you can find
it by searching through the world's submorphs (recursively if nec.)
  </pre>
</blockquote>
Here is a write up of something interesting I found to access existing
morphs <br>
<a class="moz-txt-link-freetext" href="http://blog.openinworld.com/2011/04/workspace-referencing-to-existing-morphs/">http://blog.openinworld.com/2011/04/workspace-referencing-to-existing-morphs/</a><br>
</body>
</html>