Re: Building a view transparent to dragging
Re: Building a view transparent to dragging
- Subject: Re: Building a view transparent to dragging
- From: Jerome Foucher <email@hidden>
- Date: Mon, 24 Oct 2005 16:41:58 +0200
Le 24 oct. 05 à 16:18, John Timmer a écrit :
I already call [view setEditable:NO], so that trick doesn't seem to
work for me.
So I guess I will have to embed the image into the "border"-view....
You could always give your border view a reference to the embedded
image
view, and forward DnD events to it. It may not be the easiest
thing to set
up, but if you never have the border without an associated image,
it should
work fine.
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.
I could possibly enumerate through the hierarchy of the container's
view to find out which views are possibly under the border-view. Then
I could make a hitTest on the view just below the border-view to find
out which image-view is under the cursor and pass draggingEntered to
this view, but I was just looking if someone know an easier way,
which I wasn't aware of....
Jérome
_______________________________________________
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