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

NSProgressIndicator updating


  • Subject: NSProgressIndicator updating
  • From: Eric Long <email@hidden>
  • Date: Wed, 09 Mar 2005 17:00:13 -0800

Hi,

I'm told this issue has been discussed before, but I haven't found it, so
I'm bringing it up again.

I have a window with a progress bar in it that only appears when there is
activity.  Activity is generally swift to complete, but not always.  When an
operation begins, I show the bar, and increment it while the operation
progresses.  At the end, I ensure the progress current value and max value
are set to match.  Then I re-hide the progress bar.

Ideally, I'd like the user to see the progress bar full for at least a split
second, but the internal Cocoa thread mechanism that actually does the
progress bar drawing never quite catches up before the progress bar is
hidden.  So, the user sees a progress bar with a small portion filled, then
it disappears.

Calling [myProgress display] has little or no effect.

How can I force the Cocoa drawing thread to update the display immediately?
Any ideas?

I just want the user to see that split second full progress.


Thanks,


Eric Long

___________________________________________________________________________
Macintosh Software Engineer

Allume Systems, Inc.                           http://www.allume.com
245 Westridge Drive, Watsonville, CA 95076      (831) 761-6200 x628
N 36° 54.768 W 121° 46.990
Matt. 11:28


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSProgressIndicator updating
      • From: Zach Wily <email@hidden>
  • Prev by Date: Re: NSEnumerator retaining objects?
  • Next by Date: How do I change the font of selected text in an NSTextView?
  • Previous by thread: Re: Bindings and File's Owner
  • Next by thread: Re: NSProgressIndicator updating
  • Index(es):
    • Date
    • Thread