<div dir="ltr"><div>That reminds me the post from Travis Griggs, citing ideas from Vassili Bykov<br><br><a href="http://www.cincomsmalltalk.com/userblogs/travis/blogView?showComments=true&amp;printTitle=Cursor_consider_showWhile:_[Harmful]&amp;entry=3432339015">http://www.cincomsmalltalk.com/userblogs/travis/blogView?showComments=true&amp;printTitle=Cursor_consider_showWhile:_[Harmful]&amp;entry=3432339015</a><br>
<br></div>And I think that Juan&#39;s implementation is clearly in this spirit, so +1<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/25 H. Hirzel <span dir="ltr">&lt;<a href="mailto:hannes.hirzel@gmail.com" target="_blank">hannes.hirzel@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 6/25/13, David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>

&gt; On Tue, Jun 25, 2013 at 07:16:03AM -0300, Juan Vuletich (mail lists) wrote:<br>
&gt;&gt; Quoting Frank Shearar &lt;<a href="mailto:frank.shearar@gmail.com">frank.shearar@gmail.com</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; &gt;...<br>
&gt;&gt; &gt;I realise that I&#39;m advocating the removal of a host of Graphics<br>
&gt;&gt; &gt;dependencies only to replace them with ToolBuilder-Kernel<br>
&gt;&gt; &gt;dependencies. I&#39;d prefer to not have the latter either, but it&#39;s a<br>
&gt;&gt; &gt;lesser of two evils.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;...<br>
&gt;&gt; &gt;frank<br>
&gt;&gt;<br>
&gt;&gt; What about my suggestion? I mean, doesn&#39;t it deserve a comment?<br>
&gt;&gt;<br>
&gt;<br>
&gt; Yes indeed it does. I have not been following this discussion closely, but<br>
&gt; I&#39;ll comment anyway :-)<br>
&gt;<br>
&gt; On Mon, Jun 24, 2013 at 10:28:31AM -0300, Juan Vuletich (mail lists) wrote:<br>
&gt;&gt; I recently did something better fo Cuis. The idea is to let Morphic<br>
&gt;&gt; handle that. If Morphic frame rate drops below some threshold, show<br>
&gt;&gt; the wait cursor. This way, there are no &#39;bad&#39; references to UI from<br>
&gt;&gt; non-UI code, and you only get the wait cursor if appropriate (for<br>
&gt;&gt; instance, not if the very same code is run on a forked process). It is<br>
&gt;&gt; trivial to add protocol to set the &quot;wait cursor&quot; to be used. This<br>
&gt;&gt; allowed me to clean a lot of methods.<br>
&gt;&gt;<br>
&gt;&gt; It is in update #1704 at <a href="https://github.com/jvuletich/Cuis" target="_blank">https://github.com/jvuletich/Cuis</a> .<br>
&gt;<br>
&gt; This sounds like like a really elegant approach, because it does not<br>
&gt; require advance knowledge that some operation is likely to take a long<br>
&gt; time, and it will do the right thing on both slow and fast hardware.<br>
&gt;<br>
&gt; It does however seem to depend on the Morphic update mechanism, so it<br>
&gt; may not translate well to other UI styles. (I look to MVC to keep us<br>
&gt; honest in these matters, but you can imagine a SeasideProject in addition<br>
&gt; to MorphicProject and MVCProject, and the same principle applies.)<br>
&gt;<br>
&gt; On Mon, Jun 24, 2013 at 09:12:08PM -0500, Chris Muller wrote:<br>
&gt;&gt; After more thought, I should rebut myself for sounding so harsh.<br>
&gt;&gt; Frank, are Cursor showWhile:, et al. the _sole_ cause of dependency on<br>
&gt;&gt; Graphics from many packages?  If so, then I do understand the interest<br>
&gt;&gt; in wanting to soften those dependencies.  If we&#39;re going to extend<br>
&gt;&gt; &quot;UIManager&quot; I think we should call it something generic to a UI that<br>
&gt;&gt; may not even support a cursor:<br>
&gt;&gt;<br>
&gt;&gt;   UIManager default indicateBusyWhile: [ ... ]<br>
&gt;&gt;   UIManager default indicateReadingWhile: [ ... ]<br>
&gt;&gt;   etc.<br>
&gt;&gt;<br>
&gt;<br>
&gt; This sounds like a promising approach. It is easy to read and the intent<br>
&gt; is clear. It seems like it would provide a mechinism for using an optimal<br>
&gt; implementation for various types of projects. For example, an MVCProject<br>
&gt; might use the traditional &quot;Cursor wait showWhile:&quot; idiom, and a<br>
&gt; MorphicProject<br>
&gt; could use the new Cuis approach. Meanwhile if someone was (finally!)<br>
&gt; implementing SeasideProject, they could figure out an implementation that<br>
&gt; makes sense for a web app.<br>
&gt;<br>
&gt; Dave<br>
<br>
</div></div>+ 1<br>
<br>
&gt;<br>
&gt;<br>
<br>
</blockquote></div><br></div>