Re: how to disable an indeterminate progress bar?
Re: how to disable an indeterminate progress bar?
- Subject: Re: how to disable an indeterminate progress bar?
- From: "Nick Emery" <email@hidden>
- Date: Tue, 05 Jun 2001 10:55:35 +0100
- Organization: Peramon technology Ltd
>
Ah, for that matter, NSProgressIndicator represents the active state
>
with the animation & inactive state without it. I believe that's the
>
purpose of this control.
>
>
> it could be greyed out (as per my question) or it could disappear all
>
> together.
>
The common way is to remove the indicator from the window altogether
>
(i.e. Project Builder).
>
>
> i can't work out how to do either of these easily.
>
Hmmm. I'd like to know what's blocking you from removing it from the
>
window. -addSubview: & removeFromSuperview should work in these cases.
>
I'd like to hear your comments so that I can incorporate them into
>
future enhancements.
well, i'm relatively new to this cocoa thing, and i just can't work out easily how to place the progress indicator back exactly in the correct place (where is originally started) when i next need to display it. maybe it is simple. i have not tried it yet. having looked at addSubview, it seems like i will have to do some experimentation to work out exactly how to position it again.
>
>
> incidentally, the processing happens asynchronously in a subthread and
>
> is interruptable, so the automatic polychrome wheel of the appkit can
>
> never appear (and is unsuitable).
>
This is exactly what NSProgressIndicator is designed to address. I
>
don't understand why the animation is not suitable. Could you
>
elaborate ?
well, the animation is fine while the processing is active. however, in my opinion, the indicator is too eye catching when the process in inactive and the animation is not playing. This is because most of the window is various shaded of grey except for the important controls which are blue. to have the idle progress bar also blue leads you to believe that it is an important control...
--nikki