Re: Hide/Show an NSView???
Re: Hide/Show an NSView???
- Subject: Re: Hide/Show an NSView???
- From: Henry McGilton <email@hidden>
- Date: Tue, 6 May 2003 06:07:16 -0700
On Monday, May 5, 2003, at 11:20 PM, M. Uli Kusterer wrote:
Folks,
thanks, though I can't believe there's no way to hide/show a view,
at least I have a workaround for my case now.
There is a very very simple way to hid a view: just don't draw anything.
Have your custom view class implement a -(void)setVisible:(BOOL)flag
method, and when the flag is NO just do an immediate return from
drawRect.
Ichose to go with a transparent NSTabView, which makes this a lot
easier.
Thanks to Andreas, Stephan and especially Tony.
--
Cheers,
M. Uli Kusterer
Cheers,
........ Henry
===============================+============================
Henry McGilton | Trilithon Software
Boulevardier, Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
|
===============================+============================
_______________________________________________
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.