So I took your advice Joe, and transferred my batch code from a button
to a thread.  I must admit the GUI is more Mac-like.  Want to hear
what's ironic tho: when the thread is first run by the button, my app
"hangs" for seconds (sometimes 20 or more) at a time with the beach
ball of death until "things get going" and the main thread regains
control of the app.  Previously, there was no beach ball.  Curious no?

I agree that threads are the better way to go w.r.t. Apple's GUI guidelines.

I will try to avoid app.doevents as per everyone's warnings.  I still
maintain that myWindow.refresh should do just that, or why have this
call?

P.


On 4/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Apr 25, 2007, at 23:51 UTC, Peter K. Stys wrote:
>
> > Point is, if you put it in a thread, the user can continue doing
> > other stuff, which is not what you may want before this job is done.
>
> In such a case, you should display a modal dialog while the job is
> being done -- that's what they're for.  For an Apple example, copy a
> big file.
>
> > If you put the thread in a modal dlog, as someone pointed out, the
> > thread may be halted, so no dice.
>
> I'm not sure what you're talking about there.  A modal dialog running
> (or just displayed during) a thread works perfectly well, and indeed is
> the correct design for a long process that you want to finish before
> you let the user do other things.
>
> Best,
> - Joe
>
> --
> Joe Strout -- [EMAIL PROTECTED]
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>


-- 
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel:    (613)761-5444
fax:    (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to