• 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: Hiding Controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding Controls


  • Subject: Re: Hiding Controls
  • From: David Remahl <email@hidden>
  • Date: Sun, 11 Aug 2002 11:51:51 +0200

> Hi All,
>
> I'm quite new at Cocoa, having come from a Carbon background, and I am
> unable to find a way to programmatically hide controls/views.
>
> For example, I have a progress indicator which I would like to hide when
> it is complete, and show when I need it show progress again. A bit like
> the spinning arrows in Mail.
>
> Is it even possible in Cocoa? If so, how can I do it?
>
> Thanks for any help,
>
> Chris

The fact that there is no way to hide a view in Cocoa is a consious design
desission. The NeXT engineers hosted the GUI idea that hiding things from
the user was a bad thing to do.

Therefore, you will have to temporarily remove the view from its superview,
and reinsert it when you want it displayed again. Don't forget to retain the
view before removing it from its superview.

/ Rgds, David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Hiding Controls
      • From: Ondra Cada <email@hidden>
    • Re: Hiding Controls
      • From: Chris Allum <email@hidden>
References: 
 >Hiding Controls (From: Chris Allum <email@hidden>)

  • Prev by Date: Hiding Controls
  • Next by Date: Aliasing quality settings
  • Previous by thread: Hiding Controls
  • Next by thread: Re: Hiding Controls
  • Index(es):
    • Date
    • Thread