From 410fa9871f0111a99177e901b7e7e9af8d01a96e Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Sat, 12 Nov 2022 20:59:16 +0100 Subject: [PATCH] Remove old dragImage code New code (macOS 10+ should support the NSDraggingSource protocol: https://developer.apple.com/documentation/appkit/nsdraggingsource. --- gdk/macos/GdkMacosWindow.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gdk/macos/GdkMacosWindow.c b/gdk/macos/GdkMacosWindow.c index 0eb1ec7ca8..36964391b3 100644 --- a/gdk/macos/GdkMacosWindow.c +++ b/gdk/macos/GdkMacosWindow.c @@ -576,6 +576,8 @@ typedef NSString *CALayerContentsGravity; initialResizeLocation = convert_nspoint_to_screen (self, [self mouseLocationOutsideOfEventStream]); } +// NSDraggingDestination protocol + -(NSDragOperation)draggingEntered:(id )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 { -- 2.30.2