Re: Building a view transparent to dragging
Re: Building a view transparent to dragging
- Subject: Re: Building a view transparent to dragging
- From: glenn andreas <email@hidden>
- Date: Mon, 24 Oct 2005 09:55:03 -0500
On Oct 24, 2005, at 9:41 AM, Jerome Foucher wrote:
Unfortunately, one border-view can be positionned on top of several
images, and as it's designed right now, the border-view has no
knowledge of which view is under it. The thing is pretty generic
and is built from a template. One can freely design a template that
stacks several border-views on top of several images.
Cocoa is not designed, in general, to support overlapping views.
From <file:///Developer/ADC Reference Library/documentation/
Cocoa/Conceptual/DrawViews/Concepts/ViewHierarchy.html#//apple_ref/
doc/uid/20000909>
For performance reasons, the Application Kit does not enforce
clipping among sibling views, or guarantee correct invalidation and
drawing behavior when sibling views overlap. If you want a view to
be drawn in front of another view, you should make the front view a
subview (or descendant) of the rear view.
It mostly works, but not always, so unless you've got complete
control over the layout of the views (which is sounds like you
don't), you're going to have problems with this approach.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | build, mutate, evolve | images, textures, backgrounds, art
_______________________________________________
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