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 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 thread.  One day...)

The docs for NSProgressIndicator's setUsesThreadedAnimation say "This
value is only a hint and may be ignored". Indeed, sometimes it animates
and sometimes it does not.  I can't find any pattern.

Is there a way to reliably make an NSProgressIndicator animate while the
main thread is blocked?

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/rob.ross%40gmail.com

This email sent to rob.r...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to