<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Georgia">This works for me:<br>
<br>
doStepSeveral<br>
<br>
10 timesRepeat: [<br>
self doStep.<br>
self changed: #contentsSelection.<br>
World displayWorldSafely.<br>
(Delay forMilliseconds: 100) wait. "in case you want to
see each step"<br>
]<br>
<br>
<br>
Cheers,<br>
Bob<br>
<br>
</font>
<div class="moz-cite-prefix">On 11/14/12 1:26 PM, Eliot Miranda
wrote:<br>
</div>
<blockquote
cite="mid:CAC20JE00jtcDBYwBP35YdX-rfTRnZOV2anNSOvXo4u4dwLb8Mg@mail.gmail.com"
type="cite">Hi All,
<div><br>
</div>
<div> I submitted a run until feature for the debugger to the
Squeak inbox recently and would commit it to trunk except that
I'd like the option of having the selection update on each step.
But I can't see how to do that. I *think* selection update is
done with a callback here in Debugger>>contents:selection:</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div><span class="" style="white-space:pre"> </span>Smalltalk
isMorphic ifTrue:</div>
<div><span class="" style="white-space:pre"> </span>[World</div>
<div><span class="" style="white-space:pre"> </span>addAlarm:
#changed:</div>
<div><span class="" style="white-space:pre"> </span>withArguments:
#(contentsSelection)</div>
<div><span class="" style="white-space:pre"> </span>for: self</div>
<div><span class="" style="white-space:pre"> </span>at: (Time
millisecondClockValue + 200)].</div>
</div>
<div><br clear="all">
<div>And I'm not sure how this causes the selection to update.
Is it part of text morph draw or a separate thing? This is
too convoluted to look through. So perhaps someone can help
e. If I want the selection to redraw what's the minimum
action necessary. This is as part of a loop that looks like</div>
<div><br>
</div>
<div>
<div><span class="" style="white-space:pre"> </span>[self
selectedContext == context</div>
<div><span class="" style="white-space:pre"> </span> and:
[(value := receiver with: context executeMethod: method) ==
false]] whileTrue:</div>
<div><span class="" style="white-space:pre"> </span>[self
doStep].</div>
</div>
<div><br>
</div>
<div>i.e. after the doStep I'd like to force the code pane to
update its selection.</div>
<div><br>
</div>
<div>AdvThanksance</div>
-- <br>
best,
<div>Eliot</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>