Re: Re: clicking through
Re: Re: clicking through
- Subject: Re: Re: clicking through
- From: "Michael Ash" <email@hidden>
- Date: Sun, 10 Sep 2006 16:33:34 -0400
On 9/10/06, Mailing list subscriptions <email@hidden> wrote:
El 10/09/2006, a las 14:38, Hans van der Meer escribió:
> Problem:
> One view (subclass of NSView) covers another one completely; both
> are in the same window and share the same superview. The covering
> view is (necessary) added as subview latest.
If I understand your description correctly you are trying to do
something unsupported by NSView. Overlapping NSViews are not
supported. One view can enclose another (superview-subview) but you
can't overlay one view "on top" of another. See the NSView
documentation.
I see this stated constantly but I have never seen anything in the
documentation to support this position.
What the docs *do* state is that there are limitations to overlapping
views, such as no clipping and possibly unexpected invalidation
behavior. But the frameworks explicitly support overlapping views in
general. One example is Interface Builder's Move To Front/Back
commands. Another example is the NSWindow method useOptimizedDrawing:,
whose docs state:
"You should always set flag to YES if there are no overlapping
subviews within the receiver. The default is NO."
I agree that overlapping views is usually a bad idea and should be
handled with caution, as they often don't behave as you would expect
(mainly because people tend to expect them to behave like windows,
which they aren't and don't), but as far as I can tell the frameworks
support it just fine.
Mike
_______________________________________________
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