• 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: Andreas Schempp <email@hidden>
  • Date: Mon, 5 May 2003 18:25:40 +0200

Create two views in interface builder, and an empty window.

you can set the windows view with [window setContentView:movieView] or something like

don't forget to resize you window to the size of your view


Am Montag, 05.05.03 um 14:57 Uhr schrieb M. Uli Kusterer:

Hi,

this is probably an FAQ), but for the life of me I can't find a way to hide an NSView. I have a window containing an NSImageView and an NSMovieView, and depending on what data I'm currently displaying, I want to show either, but never both.

How can I do that? I tried setIsVisible, setVisible, show, hide, showView, hideView, ... none of these are supported by NSView. And the docs only mention isVisible, which tells me whether a view is onscreen, not whether it's shown or hidden.

Am I just too sunburnt today, or is this hidden away too good?
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.
_______________________________________________
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: Hide/Show an NSView???
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >Hide/Show an NSView??? (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Can't modify existing user interface
  • Next by Date: Re: Disk Image Volumes
  • Previous by thread: Re: Hide/Show an NSView???
  • Next by thread: Re: Hide/Show an NSView???
  • Index(es):
    • Date
    • Thread