NSView Subviews interrupting drag operation

后端 未结 2 834
粉色の甜心
粉色の甜心 2020-12-16 01:45

I have an NSView which is registered for a drag operation.

In that view I have a subclassed NSScrollView, which in itself has an NSImageView in it.

When drag

2条回答
  •  北海茫月
    2020-12-16 02:36

    You can unregister the NSImageView as a dragging destination. Its superview will then handle the dragging session, if it's set up to do that.

    [imageView unregisterDraggedTypes];
    

提交回复
热议问题