• 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 a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding a view


  • Subject: Re: Hiding a view
  • From: Eric Peyton <email@hidden>
  • Date: Thu, 25 Oct 2001 08:51:30 -0500

You need to removeFromSuperview:

Or you can overwrite drawRect: on the view and have it do nothing ...

Eric

On Thursday, October 25, 2001, at 02:17 AM, Dustin Mierau wrote:

Hey,

This is probably a stupid question, how do I hide a subview? I can't actually find a method to "hide" an NSVIew.

The only way I can find to actually do this is by removing the subview from it's super, but I would rather just disable an NSView from drawing.

Thanks,
-Dustin
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: Hiding a view
      • From: Rosyna <email@hidden>
References: 
 >Hiding a view (From: Dustin Mierau <email@hidden>)

  • Prev by Date: Re: Opening URLs
  • Next by Date: Subclassing NSTableView
  • Previous by thread: Re: Hiding a view
  • Next by thread: Re: Hiding a view
  • Index(es):
    • Date
    • Thread