<span class="q">Ooops....<br><br>On 9/25/07, <b class="gmail_sendername">Maciej Stachowiak</b> <<a href="mailto:mjs@apple.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mjs@apple.com</a>> wrote:
<br></span><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div><span class="q"><span><div>On Sep 24, 2007, at 10:45 PM, Robert O'Callahan wrote:<br></div></span></span><span class="q"><div><div>So
I suspect that, much like synchronous XMLHttpRequest, synchronous file
reads will lead to excessive UI lockups in bad circumstances
unanticipated by the app author.
</div></div></span></div></div></blockquote><div><br>The file size is
accessible to the app author. But OK, lets add an asynchronous API.<br><br>What's the best way to do that? Add an onread event to File and, say, "void read(long offset, long length)"? Or something with an explicit callback such as setTimeout has? (Although I'm not sure how we write such things in standard IDL.)
<br><br>Rob</div></div>-- <br>"Two men owed money to a certain moneylender. One owed him five hundred denarii, and the other fifty. Neither of them had the money to pay him back, so he canceled the debts of both. Now which of them will love him more?" Simon replied, "I suppose the one who had the bigger debt canceled." "You have judged correctly," Jesus said. [Luke 7:41-43]