4 /* DragDestinationTextView */
6 #import <Cocoa/Cocoa.h>
9 /* This is a subclass of NSTextView that behaves identically except for drag and drop.
10 * Unlike NSTextView, this one will accept file drags, do all the highlighting etc.
11 * If the user drops the file at the end, it calls its delegate which must implement
12 * (BOOL)handleDroppedFile:(NSString *)filename forTextView:(NSTextView *)textView;
14 @interface DragDestinationTextView : NSTextView
19 - (BOOL)dragIsFile:(id <NSDraggingInfo>)sender;
20 - (NSString *)getFileForDrag:(id <NSDraggingInfo>)sender;