Remove old dragImage code
authorArjan Molenaar <gaphor@gmail.com>
Sat, 12 Nov 2022 19:59:16 +0000 (20:59 +0100)
committerArjan Molenaar <gaphor@gmail.com>
Tue, 13 Dec 2022 14:19:04 +0000 (15:19 +0100)
New code (macOS 10+ should support the NSDraggingSource protocol:
https://developer.apple.com/documentation/appkit/nsdraggingsource.

gdk/macos/GdkMacosWindow.c

index 0eb1ec7ca8a533e98b3bb84cb233a6d82b0ade8f..36964391b37fbe744101824327689216cafe4787 100644 (file)
@@ -576,6 +576,8 @@ typedef NSString *CALayerContentsGravity;
   initialResizeLocation = convert_nspoint_to_screen (self, [self mouseLocationOutsideOfEventStream]);
 }
 
+// NSDraggingDestination protocol
+
 -(NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
 {
   NSPoint location = [sender draggingLocation];
@@ -665,9 +667,9 @@ typedef NSString *CALayerContentsGravity;
   return NO;
 }
 
--(void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint operation:(NSDragOperation)operation
-{
-}
+// NSDraggingSource protocol
+// ...
+// end
 
 -(void)setStyleMask:(NSWindowStyleMask)styleMask
 {