Skip to content
Permalink
Browse files

improved how URLs are matched and handled

  • Loading branch information
ejdraper committed May 19, 2015
1 parent 5c51eaa commit 8512d2ab357aa2ab32abd47bf78f203928a64880
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/drag_and_drop_view.rb
@@ -39,8 +39,8 @@ def performDragOperation(info)
text = info.draggingPasteboard.stringForType(NSPasteboardTypeString)
self.send_delegate_event(:drag_received_for_text, text) unless text.nil?

url = NSURL.URLFromPasteboard(info.draggingPasteboard)
self.send_delegate_event(:drag_received_for_url, url.absoluteString) unless url.nil?
url = info.draggingPasteboard.propertyListForType('public.url')
self.send_delegate_event(:drag_received_for_url, url) unless url.nil?
end
end

0 comments on commit 8512d2a

Please sign in to comment.
You can’t perform that action at this time.