• 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
The best way to hide views.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The best way to hide views.


  • Subject: The best way to hide views.
  • From: Francisco Tolmasky <email@hidden>
  • Date: Thu, 20 Mar 2003 19:09:06 -0800

I am wondering what the best way to hide views is. I currently need an NSSplitView to not display itself, but am finding it quite difficult. I tried to have a _isVisible member variable and then rewrite display to only display if _isVisible was set to true:

- (void)display
{
if(_isVisible) [super display];
}

But this does not work since NSSplitView does not call display, nor displayRect, nor all the other displays nor drawRect! I am finding it quite difficult to hide this view.

Does anybody have any good ideas that do not involve moving it outside the viewing area of the window? (the view is being repositioned/resized as its hidden so the move away solution would not be the best).

Thank you in advance,

Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.

  • Follow-Ups:
    • Re: The best way to hide views.
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Undocumented Launch Services API?
  • Next by Date: Re: The best way to hide views.
  • Previous by thread: [OT]: QT-free compiling??
  • Next by thread: Re: The best way to hide views.
  • Index(es):
    • Date
    • Thread