• 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: "Smith, Bradley" <email@hidden>
  • Date: Thu, 25 Oct 2001 10:45:19 +0100

There's probably some nice API call to do it but until then why not subclass
the view (if you haven't already) and add an OkayToDraw property. Override
DrawRect and if your OkayToDraw property is false then do nothing?

Brad

> -----Original Message-----
> From: Dustin Mierau [mailto:email@hidden]
> Sent: 25 October 2001 08:17
> To: email@hidden
> Subject: Hiding a view
>
>
> 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:
    • Images in a Table
      • From: Luke Sands <email@hidden>
  • Prev by Date: Re: Opening URLs
  • Next by Date: Re: Child threads and the UI
  • Previous by thread: Re: Hiding a view
  • Next by thread: Images in a Table
  • Index(es):
    • Date
    • Thread