Caged / gitnub

A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.

This URL has Read+Write access

gitnub / views / GitNubWebView.rb
864414b6 » Caged 2008-08-27 Add GitNubView, prepping fo... 1 class GitNubWebView < WebView
2 def awakeFromNib
3 self.setUIDelegate(self)
4 end
5
6 def webView_dragDestinationActionMaskForDraggingInfo(view, info)
7 WebDragDestinationActionLoad
8 end
9
10 def webView_dragSourceActionMaskForPoint(view, point)
11 WebDragSourceActionLink
12 end
13
14 def performDragOperation(sender)
15 # str = sender.draggingPasteboard.stringForType("NSStringPboardType")
16 # puts NSURL.URLWithString(str).host
17 end
18
19 end