Problems dragging and dropping NSImageView

I have an NSBox containing two static text fields and two NSImageView. NSBox is subclassed as myNSBox. I registered view / NSBox to accept the appropriate drag and drop types. Therefore, when I drag items into static text fields, drag and drop operations work. However, dragging and dropping onto any NSImageView (which are NSBox subordinates) does not work. An interesting point is that I cannot drag files from the Finder onto the image. Dragging and dropping from the screen onto NSImageView works great.

Any suggestions ?

+3
source share
1 answer

, . DragTypes .

+4

Source: https://habr.com/ru/post/1792087/


All Articles