• 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: Best practice with NSProgressIndicator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best practice with NSProgressIndicator


  • Subject: Re: Best practice with NSProgressIndicator
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 28 Jul 2017 18:21:33 +0100

On 28 Jul 2017, at 16:57, Mark Allan <email@hidden> wrote:
>
> I'm wondering if anyone has any thoughts about or links to best practices
> when using determinate NSProgressIndicators.

[snip]

> I'm debating doing it with an NSTimer firing every second, but wondered if
> anyone had any other suggestions?

I’d advise you to do just that - use an NSTimer.  You could fire it faster than
once a second, mind; 10Hz is perfectly reasonable, for instance.  I’m not sure
exactly how often the progress indicator is redrawn by the system (but it’s
drawn on a background thread, so if you wanted it’d probably be quite easy to
check), but it’s unlikely to be faster than 60Hz (IIRC the macOS will throttle
applications that try to do normal drawing - as opposed to OpenGL - faster than
that), so it’s probably not worth bothering updating faster than that, *even
if* you want it to be as smooth and responsive as possible.

Kind regards,

Alastair.

--
http://alastairs-place.net

_______________________________________________

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

References: 
 >Best practice with NSProgressIndicator (From: Mark Allan <email@hidden>)

  • Prev by Date: Re: Best practice with NSProgressIndicator
  • Next by Date: Re: Best practice with NSProgressIndicator
  • Previous by thread: Re: Best practice with NSProgressIndicator
  • Next by thread: Re: Best practice with NSProgressIndicator
  • Index(es):
    • Date
    • Thread