Re: Progressbar does not survive hide/show
Re: Progressbar does not survive hide/show
- Subject: Re: Progressbar does not survive hide/show
- From: Trygve Inda <email@hidden>
- Date: Tue, 05 Dec 2006 05:42:19 +0000
- Thread-topic: Progressbar does not survive hide/show
> That code doesn't work at all for me when I run it in a loop. I think
> you need to redesign your progress bar handling.
>
> I would unhide those UI widgets only once and hide them only once,
> this can be done outside of the loop. No need to have a redundant call
> to a method.
>
> Good luck, let me know if you want further help.
> Peace, Alan
Hi Alan,
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.
Many thanks!
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