-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitNubView, prepping for custom drag and drop operations
- Loading branch information
Justin Palmer
committed
Aug 28, 2008
1 parent
add5c94
commit 864414b
Showing
7 changed files
with
73 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters