Re: NSProgressIndicator
Re: NSProgressIndicator
- Subject: Re: NSProgressIndicator
- From: "Jeremy W. Sherman" <email@hidden>
- Date: Thu, 23 Apr 2009 00:16:07 -0400
>
> And finally:
>
> . . .
> [myIndicator setMaxValue:0];
> [myIndicator setMinValue:0];
> [myIndicator setDoubleValue:0];
>
This looks to be your problem. Your max and min values are identical
following your first run. Unless you're reasserting the correct values
before redisplaying, they'll be stuck being the same, as well.
—Jeremy
On Wed, Apr 22, 2009 at 4:09 PM, Livio Isaia <email@hidden> wrote:
> 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
>
_______________________________________________
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