• 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: Thu, 06 Oct 2016 13:43:19 -0700
  • Feedback-id: 167118m:167118agrif8a:167118s8RDKnPWZ8:SMTPCORP

On Oct 6, 2016, at 13:26 , Jens Alfke <email@hidden> wrote:
>
> Maybe someone’s come up with a generic proxy class that can be used to dispatch the notifications to the main thread?

Well, Apple has. NSProgress is a multi-purpose class, one of whose purposes is to provide a thread-safe way of trampolining the progress completion reports from a background worker thread to properties that may be safely accessed from the main thread.

However, there’s a bit of a learning curve associated with NSProgress, since it does other stuff that may or may not be useful here. Also, some additional coding may be needed to rewire the properties that the UI bindings actually use, to match to the NSProgress API. For that reason, it may be simpler (in this case) just to dispatch to the main thread and keep the rest of existing code structure.

I remember you had an excursion into the weird world of NSProgress, maybe 2-3 years ago, because you posted about it here. It’s only fairly recently that I’ve started using NSProgress too.

_______________________________________________

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: "J.E. Schotsman" <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>)

  • Prev by Date: Re: progress bar not updating
  • Next by Date: Re: progress bar not updating
  • Previous by thread: Re: progress bar not updating
  • Next by thread: Re: progress bar not updating
  • Index(es):
    • Date
    • Thread