On Mar 13, 2009, at 4:20 PM, Sean McBride wrote:
Hi all,
I'm trying to make a cheap, modal, indeterminate progress dialog, but
I'm having trouble animating the progress bar.
(Yes, I know this is only slightly better than the spinning wheel of
death. Yes, I know I should thread my long
Hi all,
I'm trying to make a cheap, modal, indeterminate progress dialog, but
I'm having trouble animating the progress bar.
(Yes, I know this is only slightly better than the spinning wheel of
death. Yes, I know I should thread my long running code. Yes, I know I
should not block the main
No, none at all. The main AppKit thread is the thread that will be
repainting your progress bar. If it's blocked, it can't paint the new
state of your progress bar.
Rob
On Mar 13, 2009, at 3:20 PM, Sean McBride wrote:
Hi all,
I'm trying to make a cheap, modal, indeterminate progress
Rob,
Thanks for your reply. But what you say can't be so. As I said,
sometimes my 'hint' is accepted and the progress bar animates, and I am
definitely blocking the main thread with my own code at the same time.
But it only works sometimes, and I'm looking to make it work all the
time. But the
Your question was if there was a reliable way of doing it, and as you
have experienced, that's the best you can hope to achieve without
using a separate thread.
Rob
On Mar 13, 2009, at 3:29 PM, Sean McBride wrote:
Rob,
Thanks for your reply. But what you say can't be so. As I said,
Sean,
AppKit is using -[NSApplication updateWindows] for some of animation
thread synchronization tasks.
If you experience animation not properly starting up with blocking
operations, you can kick start the animation by calling the method
before going into the operation.
Aki
Rob,