1# 2# DNDTableView.py 3# Bookmarks 4# 5# Converted by u.fiedler on 10.02.05. 6# 7# The original version was written in Objective-C by Malcolm Crawford 8# at http://homepage.mac.com/mmalc/CocoaExamples/controllers.html 9 10from AppKit import * 11 12class DNDTableView (NSTableView): 13 14 def draggingSourceOperationMaskForLocal_(self, flag): 15 # This is a bug fix. See 16 # file:///Developer/ADC%20Reference%20Library/documentation/Cocoa/Conceptual/DragandDrop/Tasks/faq.html#//apple_ref/doc/uid/20002248/BBCGGBHE 17 # or http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/Tasks/faq.html#//apple_ref/doc/uid/20002248/BBCFIJGF 18 if not flag: 19 return NSDragOperationLink # link for external dragged URLs 20 return super(DNDTableView, self).draggingSourceOperationMaskForLocal_(flag) 21