Re: Dragging files to NSTextView ...
Re: Dragging files to NSTextView ...
- Subject: Re: Dragging files to NSTextView ...
- From: Satoshi Matsumoto <email@hidden>
- Date: Thu, 04 Mar 2004 23:21:30 +0900
Hi, Jerry
on 04.3.4 10:43 PM, Jerry LeVan at email@hidden wrote:
>
Is it possible to "drag a text file" onto a NSTextView *and* have
>
the internal drag stuff still work?
Yes, you can realize "drag a text file" with overiding concludeDragOperation
in your NSTextView subclass.
- (void)concludeDragOperation:(id <NSDraggingInfo>)sender
{
NSPasteboard *pboard = [sender draggingPasteboard];
if ( [[pboard types] containsObject:NSFilenamesPboardType] )
{
// Perform text file operation you want
......
}
else [super concludeDragOperation:sender];
}
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.