Revision: 10167
http://sourceforge.net/p/skim-app/code/10167
Author: hofman
Date: 2018-12-22 21:45:18 +0000 (Sat, 22 Dec 2018)
Log Message:
-----------
clear drag pboard after dragging from image view
Modified Paths:
--------------
trunk/SKDragImageView.m
Modified: trunk/SKDragImageView.m
===================================================================
--- trunk/SKDragImageView.m 2018-12-22 19:38:43 UTC (rev 10166)
+++ trunk/SKDragImageView.m 2018-12-22 21:45:18 UTC (rev 10167)
@@ -177,6 +177,10 @@
return isLocal || [self isEditable] == NO ? NSDragOperationNone :
NSDragOperationCopy;
}
+- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint
operation:(NSDragOperation)operation {
+ [[NSPasteboard pasteboardWithName:NSDragPboard] clearContents];
+}
+
#else
- (void)dragObject:(id<NSPasteboardWriting>)object withImage:(NSImage *)image
fromFrame:(NSRect)frame forEvent:(NSEvent *)event {
@@ -189,6 +193,12 @@
return context == NSDraggingContextWithinApplication || [self isEditable]
== NO ? NSDragOperationNone : NSDragOperationCopy;
}
+- (void)draggingSession:(NSDraggingSession *)session
+ endedAtPoint:(NSPoint)screenPoint
+ operation:(NSDragOperation)operation {
+ [[session draggingPasteboard] clearContents];
+}
+
#endif
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit