Re: Hide/show GUI elements, how?
Re: Hide/show GUI elements, how?
- Subject: Re: Hide/show GUI elements, how?
- From: Jens Bauer <email@hidden>
- Date: Sat, 2 Feb 2002 04:10:05 +0100
Hi Allan,
On Sat, 2 Feb, 2002, Allan Odgaard <email@hidden> wrote:
>
I have a status bar where a progress indicator may sometimes show up.
>
>
What's the best approach for implementing this?
>
>
I.e. should I add the progress bar in IB and then simply call
>
removeFromSuperview at startup and then add it (again) when it's
>
actually needed? Or is there some way to hide elements (temporarily)?
>
For example something like a frameless tabview (where one tab shows the
>
progress bar and the other is empty).
This question was asked recently, and yes, you should hide the elements
by removing them from the superview and then later add them.
You may want to place a bunch of elements inside a NSView and then remove
this NSView, and later add it, rather than doing a whole bunch of remove/
add, since it would speed things up very much.
Sorbits.. You're from Denmark, right ? :)
Love,
Jens
--
Jens Bauer, Faster Software.