Re: Progressbar does not survive hide/show
Re: Progressbar does not survive hide/show
- Subject: Re: Progressbar does not survive hide/show
- From: Alastair Houghton <email@hidden>
- Date: Tue, 5 Dec 2006 14:12:15 +0000
On 5 Dec 2006, at 05:42, Trygve Inda wrote:
The code there is actually inside a Notification callback (and
checks the
hidden state before changing it), so it is not really a loop, but I
was able
to fix it by removing the hide method and replacing it with:
[cacheProgress startAnimation:self]; // shows it
[cacheProgress setDoubleValue:0]; // hides it
[cacheProgress stopAnimation:self];
Not sure why a normal hide fails, but there you go.
If I had to guess, I'd say it might be something to do with the
animation. Hiding the view probably stops the animation, but showing
it is unlikely to restart it.
Did you try just doing a -startAnimation: (and maybe setting its
value) after showing it?
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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