RE: Hiding a view
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