Re: NSProgressIndicator needs -display after -setDoubleValue
Re: NSProgressIndicator needs -display after -setDoubleValue
- Subject: Re: NSProgressIndicator needs -display after -setDoubleValue
- From: Jerry Krinock <email@hidden>
- Date: Sat, 13 Oct 2007 04:56:55 -0700
My thanks to Chris and Adam for waking me up today.
Yesterday, while I was making my "simple" demo, I had put the work in
a separate thread, for another reason (so my "Cancel" button would
work). But I forgot the significance of that later, when I began to
consider thread-blocking as a possible problem-causer. Today, I
added a switch to put the work back in the main thread, and yes
indeed that causes the progress bar to stick.
Conclusion: Contrary to what I had said yesterday, in a simple demo,
NSProgressIndicator will ^not^ show progress while the main thread is
blocked. And, yes, the solution is either to multithread, or -
display or unblock periodically on a timer or counter.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden