• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: progress bar not updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: progress bar not updating
      • From: Jens Alfke <email@hidden>
References: 
 >progress bar not updating (From: "J.E. Schotsman" <email@hidden>)
 >Re: progress bar not updating (From: Jens Alfke <email@hidden>)
 >Re: progress bar not updating (From: "J.E. Schotsman" <email@hidden>)
 >Re: progress bar not updating (From: Jens Alfke <email@hidden>)
 >Re: progress bar not updating (From: Quincey Morris <email@hidden>)
 >Re: progress bar not updating (From: "J.E. Schotsman" <email@hidden>)

  • Prev by Date: Re: How to count Atoms
  • Next by Date: Re: Logging in macOS 12
  • Previous by thread: Re: progress bar not updating
  • Next by thread: Re: progress bar not updating
  • Index(es):
    • Date
    • Thread