Remove old dragImage code

New code (macOS 10+ should support the NSDraggingSource protocol:
https://developer.apple.com/documentation/appkit/nsdraggingsource.
This commit is contained in:
Arjan Molenaar 2022-11-12 20:59:16 +01:00
parent 66b4f2a9dd
commit 410fa9871f

View 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
{