Re: Drag and Drop: NSImageView masks/prevents superview from receiving drag
Re: Drag and Drop: NSImageView masks/prevents superview from receiving drag
- Subject: Re: Drag and Drop: NSImageView masks/prevents superview from receiving drag
- From: Stephane Sudre <email@hidden>
- Date: Thu, 13 Jul 2006 12:44:28 +0200
On 13 juil. 06, at 07:06, Sean Murphy wrote:
I have a custom NSView which is a dragging destination. In Interface
Builder, a group of controls has been made a subview of this custom
view. When dragging into the custom view, all of the controls except
an NSImageView ignore the drag and allow the view behind it (my custom
view) to receive the drag operation. The NSImageView appears to
"swallow" the drag, however, and prevent the intended view from
receiving anything.
I'd like a drag anywhere inside the frame of my custom view to be
handled by the view itself and not intercepted by any controls on top
of it.
The image view's enabled and editable properties have both been set to
NO. It seems as though the image view is behaving like an image well,
which isn't what I want..
Is there something I'm doing wrong, or a way to prevent this behavior?
Subclass NSImageView and unregisterDraggedTypes:.
_______________________________________________
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