I created a subclass of NSImageView and implemented an unofficial protocol for dragging images between other instances of the same class. I keep a link to the view image before the drag operation and can set it back to the specified image with certain criteria.
However, I cannot determine if the drag operation was canceled. I know that the draggingEnded method is being called, but it is also being called when the drag was successful. Any ideas?
. , operation, NSDraggingSource draggedImage:endedAt:operation:, , .
operation
draggedImage:endedAt:operation:
draggedImage:endedAt:operation: :
if (operation == NSDragOperationNone) return; // Otherwise perform any drag completion tasks.
Source: https://habr.com/ru/post/1754134/More articles:How to encrypt a program to protect against disassembly? - assemblyАда: как получить доступ к этой переменной? - variablesNeed to clarify the address lines of the processor - assemblygit how to get back to a specific revision - git-revertHow to create an Android NDK sample: "bitmap-plasma" - androidIs the facility free / released on dealloc and / or release? - memory-managementHow to run 64-bit programming with visual studio 2010? - c ++Does Verilog support short circuit assessment? - verilogMonoDevelop - Does GTK Designer just show an empty square? - ideDebugging output via printf on a Cortex-M3 processor, kiosks in the BKPT instruction + confusion about JTAG and sw ports - debuggingAll Articles