• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hide/show GUI elements, how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Hide/show GUI elements, how? (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: optimizing compilers
  • Next by Date: Splitview: Collapse on doubleclick?
  • Previous by thread: Hide/show GUI elements, how?
  • Next by thread: Re: sorry for repeating it, NSTableView and *not* selecting the next line?
  • Index(es):
    • Date
    • Thread