public
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/Caged/gitnub.git
Click here to lend your support to: gitnub and make a donation at www.pledgie.com !
gitnub / views / GitNubWebView.rb
100644 19 lines (15 sloc) 0.449 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class GitNubWebView < WebView
  def awakeFromNib
    self.setUIDelegate(self)
  end
  
  def webView_dragDestinationActionMaskForDraggingInfo(view, info)
    WebDragDestinationActionLoad
  end
  
  def webView_dragSourceActionMaskForPoint(view, point)
    WebDragSourceActionLink
  end
  
  def performDragOperation(sender)
    # str = sender.draggingPasteboard.stringForType("NSStringPboardType")
    # puts NSURL.URLWithString(str).host
  end
 
end