Re: Display a NSView under another NSView
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