• 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: Hide/Show an NSView???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Hide/Show an NSView??? (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: Hide/Show an NSView???
  • Next by Date: Re: stringWithUTF8String: Question
  • Previous by thread: Re: Hide/Show an NSView???
  • Next by thread: problem with NSMatrix AND Contextual Menus
  • Index(es):
    • Date
    • Thread