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

NSProgressIndicator


  • Subject: NSProgressIndicator
  • From: Livio Isaia <email@hidden>
  • Date: Wed, 22 Apr 2009 22:09:55 +0200

I have a NSProgressIndicator that indicates the progress of a disk saving job.
Initially it's hidden so:


[myIndicator setMaxValue:count];
[myIndicator setMinValue:0];
[myIndicator setDoubleValue:0];
[myIndicator setHidden:NO];
[myIndicator displayIfNeeded];

Then I do the job calling:

[myIndicator incrementBy:1];
[myIndicator displayIfNeeded];

And finally:

[myIndicator setHidden:YES];
[myIndicator displayIfNeeded];
[myIndicator setMaxValue:0];
[myIndicator setMinValue:0];
[myIndicator setDoubleValue:0];

The first time all works perfectly, but the second, when I reset the indicator, no: the indicator is displayed but remains blank, that is it doesn't show any progress. What's going wrong?

Thank you all in advance,
best regards,
livio.
_______________________________________________

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: NSProgressIndicator
      • From: "Jeremy W. Sherman" <email@hidden>
  • Prev by Date: Re: Scaling an entire CGPath?
  • Next by Date: Re: objc_exception_throw prior to launching nib file
  • Previous by thread: Re: -[NSSharedWorkspace openFile:]: Application exits with status 255
  • Next by thread: Re: NSProgressIndicator
  • Index(es):
    • Date
    • Thread