• 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
progress bar not updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

progress bar not updating


  • Subject: progress bar not updating
  • From: "J.E. Schotsman" <email@hidden>
  • Date: Thu, 06 Oct 2016 19:04:59 +0200

Hello,

I have simple progress bar in a window that refuses to update normally.
Its doubleValue is bound to the progress value of my ProgressController class, so is “animating" and “indeterminate".
If I print the values during a job everything is correct, but the progress bar won’t update. It looks indeterminate or determinate at 100%.
Only the “animating” binding results in animated display.
The progress value and other values are changed on a background thread.
The main thread remains responsive (for example I can click on a checkbox and see its state change).
I would expect this to work but no dice.

I have checked the visibleRect, tried every combination of setNeedsDisplayInRect,displayIfNeeded() and display() in order to force it but no success.The only way to get it to draw is this code:

	progressBar.performSelectorOnMainThread( #selector(NSView.display), withObject:nil, waitUntilDone:false )

What am I missing (or is this normal)?
Bindings don’t get me much here if I need to create an outlet to progressBar and call perform...

TIA,

Jan E.


_______________________________________________

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>
  • Prev by Date: Re: Where are the ICU Headers?
  • Next by Date: Re: progress bar not updating
  • Previous by thread: Re: Where are the ICU Headers?
  • Next by thread: Re: progress bar not updating
  • Index(es):
    • Date
    • Thread