Re: progress bar not updating
Re: progress bar not updating
- Subject: Re: progress bar not updating
- From: Quincey Morris <email@hidden>
- Date: Fri, 07 Oct 2016 18:51:18 -0700
- Feedback-id: 167118m:167118agrif8a:167118s8RDKnPWZ8:SMTPCORP
On Oct 7, 2016, at 02:28 , J.E. Schotsman <email@hidden> wrote:
>
> It isn’t mentioned in the NSProgress Overview though.
You are correct about that, which makes me wonder how much of my understanding I simply dreamed.
Looking at the documentation a bit more carefully, though, I think it’s implicit. Each thread, it says, can have a “current” NSProgress object, but there can be parent-child relationships between NSProgress objects across thread boundaries. Thus, it’s perhaps not that any individual NSProgress object trampolines properties across thread boundaries, but that the parent-child communication is thread-safe.
IIRC, the way the code is structured, where I’ve used NSProgress, is that there’s a root NSProgress associated with the NSWindowController/NSViewController that’s driving the progress dialog, and there’s one or more child NSProgress objects associated with each background thread that does partial work for the overall operation. I’m not sure I’ve ever tried multi-thread access to any *single* NSProgress object’s properties.
_______________________________________________
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