Progressbar does not survive hide/show
Progressbar does not survive hide/show
- Subject: Progressbar does not survive hide/show
- From: Trygve Inda <email@hidden>
- Date: Mon, 04 Dec 2006 10:17:27 +0000
- Thread-topic: Progressbar does not survive hide/show
Very crude code:
if (progressValue >= 0 && progressValue < 1000)
{
[cacheProgress setHidden:NO];
[cacheTextLabel setHidden:NO];
[cacheTextLabel setStringValue:[[NSNumber numberWithDouble:progressValue]
stringValue]];
[cacheProgress setDoubleValue:progressValue];
}
else
{
[cacheProgress setHidden:YES];
[cacheTextLabel setHidden:YES];
}
This works the first time thru, but the second time through, the text
updates with the proper values, but the NSProgressIndicator bar does not.
I tried adding setNeedsDisplay to it, but for some reason once the progress
bar has been hidden and reshown, it doe not draw updates.
Ideas?
Trygve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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