• 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: Display a NSView under another NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display a NSView under another NSView


  • Subject: Re: Display a NSView under another NSView
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 31 Oct 2006 14:16:22 -0800
  • Thread-topic: Display a NSView under another NSView

On Tue, 31 Oct 2006 20:39:24 +0100, Marcus Karlsson <email@hidden> said:
>Hi.
>
>I have a Cocoa application where I can switch the content of a
>NSWindow between different NSViews. Right now I can only display one
>NSView at a time. Is there any way to have two NSViews visible at
>the same time. Something like this:
>
>+---- Window title ----+
>|                      |
>|     First NSView     |
>|        content       |
>|----------------------|
>|    Second NSView     |
>|        content       |
>+----------------------+

A button is an NSView. It is possible to have two buttons be visible at the
same time, so yes, it must be possible for your two NSViews to be visible at
the same time. And the way to do it is exactly the same: put their frames in
different places within their superview. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: [MEET] November CocoaHeads Meetings
  • Next by Date: Core Data: Updating MOC doesn't make document dirty when using NSTextField
  • Previous by thread: Display a NSView under another NSView
  • Next by thread: Re: Cocoa-dev Digest, Vol 3, Issue 1303
  • Index(es):
    • Date
    • Thread