diff --git a/MacDown/Code/View/MPEditorView.m b/MacDown/Code/View/MPEditorView.m index 6c7804ac..84578b19 100644 --- a/MacDown/Code/View/MPEditorView.m +++ b/MacDown/Code/View/MPEditorView.m @@ -44,24 +44,6 @@ - (void)awakeFromNib { [super awakeFromNib]; } -- (NSDragOperation)draggingEntered:(id )sender { - NSPasteboard *pboard; - NSDragOperation sourceDragMask; - - sourceDragMask = [sender draggingSourceOperationMask]; - pboard = [sender draggingPasteboard]; - - if ([pboard canReadItemWithDataConformingToTypes:[NSArray arrayWithObjects:@"public.jpeg", nil]]) { - if (sourceDragMask & NSDragOperationLink) { - return NSDragOperationLink; - } else if (sourceDragMask & NSDragOperationCopy) { - return NSDragOperationCopy; - } - } - - return NSDragOperationNone; -} - - (BOOL)performDragOperation:(id )sender { NSPasteboard *pboard; NSDragOperation sourceDragMask; @@ -88,7 +70,7 @@ - (BOOL)performDragOperation:(id )sender { } else { return NO; } - } + } else return [super performDragOperation:sender]; return YES; }