Re: Progress bar problems on server persist

2016-05-05 Thread Graham Cox
> On 6 May 2016, at 1:35 AM, Ken Thomases wrote: > > Well, you're not supposed to call -setNeedsDisplay: from a background thread, > either. > > From >

Re: Progress bar problems on server persist

2016-05-05 Thread Alex Zavatone
On May 5, 2016, at 11:16 AM, Steve Mills wrote: > On May 05, 2016, at 10:07 AM, Ken Thomases wrote: > > Well, my only suggestion was to set usesThreadedAnimation to NO. It may be > that that causes Cocoa to use a timer internally, but you shouldn't be doing > anything explicit with a timer wi

Re: Progress bar problems on server persist

2016-05-05 Thread Steve Mills
On May 05, 2016, at 10:35 AM, Ken Thomases wrote: From : "If a secondary thread of an application wants to cause portion

Re: Progress bar problems on server persist

2016-05-05 Thread Ken Thomases
On May 5, 2016, at 10:16 AM, Steve Mills wrote: > > On May 05, 2016, at 10:07 AM, Ken Thomases wrote: > >> Don't do that. You must always shunt such work to the main thread. > > Hmm. Has that always been the case with OS X and/or Cocoa? Yes. > I know an app should not do any drawing from any

Re: Progress bar problems on server persist

2016-05-05 Thread Steve Mills
On May 05, 2016, at 10:07 AM, Ken Thomases wrote: Well, my only suggestion was to set usesThreadedAnimation to NO. It may be that that causes Cocoa to use a timer internally, but you shouldn't be doing anything explicit with a timer with respect to the progress indicator. Yes, we only did use

Re: Progress bar problems on server persist

2016-05-05 Thread Ken Thomases
On May 5, 2016, at 9:55 AM, Steve Mills wrote: > > On May 05, 2016, at 09:31 AM, Ken Thomases 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 t

Re: Progress bar problems on server persist

2016-05-05 Thread Steve Mills
On May 05, 2016, at 09:31 AM, Ken Thomases 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 any

Re: Progress bar problems on server persist

2016-05-05 Thread Ken Thomases
On May 5, 2016, at 9:15 AM, Steve Mills wrote: > > A while back I started a thread about NSProgressIndicator locking up on a Mac > with no monitor. The suggested fix was to change them to use timers instead > of threads for animation. Where did the idea to use timers come from? > We thought t

Progress bar problems on server persist

2016-05-05 Thread Steve Mills
A while back I started a thread about NSProgressIndicator locking up on a Mac with no monitor. The suggested fix was to change them to use timers instead of threads for animation. We thought that fixed it, but no, it's back. Any other ideas on how to fix this? We put in a workaround to not show