Re: Overlapping Views
Re: Overlapping Views
- Subject: Re: Overlapping Views
- From: Jon Hess <email@hidden>
- Date: Fri, 23 Nov 2007 21:06:25 -0800
Hey David -
All NSNiews support subviews. IB just limits view containment to what
the user would find natural.
Feel free to inject subviews in code.
Good luck -
Jon Hess
On Nov 23, 2007, at 9:03 AM, David Alger <email@hidden
> wrote:
On Nov 23, 2007, at 10:01 AM, Alastair Houghton wrote:
On 23 Nov 2007, at 07:09, Jon Hess wrote:
NSView fully supports overlapping sibling views on Leopard and
later.
I know it's been a common request for ages on the list, but I've
never quite been sure why people are so keen on being able to have
overlapping sibling views. If one is completely contained within
the other, the parent-child relationship seems cleaner (and has
always worked); and if that isn't possible then surely in most
cases it's going to look ugly?
So, out of interest, David, what were you trying to achieve that
needed overlapping views?
This particular app would be a full-screen app. The main window,
covering most if not all of the screen, would have a background
image with other controls directly on top of it. They would be
customized to the extent I could in IB & sub-classed if necessary,
which I know that I will have to do to achieve the behavior &
appearance I want in some. Since the NSImage view doesn't support
sub-views (I'm assuming it doesn't since IB won't let me put any in
it), I was trying to have the NSImage view behind the other views so
I wouldn't have to customize a NSView & draw the image manually.
This will be my very first app written in Cocoa/Obj-C, and I'm very
used to having compositing views in Carbon. I won't be overlapping
views like this though if it isn't really supported, since I don't
want my app to possibly have erratic drawing/refresh behavior.
Regards,
David Alger
********************
Ron Paul for President 2008
http://ronpaul2008.com/
RESTORE THE REPUBLIC & RETAIN YOUR RIGHTS
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden