Re: Progress bar problems on server persist
Re: Progress bar problems on server persist
- Subject: Re: Progress bar problems on server persist
- From: Steve Mills <email@hidden>
- Date: Thu, 05 May 2016 14:55:45 +0000 (GMT)
On May 05, 2016, at 09:31 AM, Ken Thomases <email@hidden> wrote:
Where did the idea to use timers come from?
From you, man! March 21. :) You also mentioned turning off the animation as one way of working around this problem. What's the best way to do that?
This doesn't look like the main thread. Why is anything involving a progress indicator happening on a non-main and non-private-to-AppKit thread? Are you manipulating the GUI from background threads (like setting the progress bar's value)?
The value can get set from non-main threads, as well as the indeterminate property.
Also, if you run a run loop to wait for some specific source — as RRD`-[RESTClient sendRESTCall:] appears to be doing — you should basically always schedule that source on a private mode and run the run loop in that mode. That prevents any other unknown sources from firing.
Hmmm. This particular method is waiting for the REST result to be sent back, so it just loops with [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1.0]]; until a flag has changed. Again, I didn't write this. Well mess with using a private mode instead.
Finally, what are the other threads doing when this happens? It may be a conflict between threads.
I don't have the stack crawl for main for this particular freeze-up.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
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