Re: Dragging files to NSTextView ...
Re: Dragging files to NSTextView ...
- Subject: Re: Dragging files to NSTextView ...
- From: Jerry LeVan <email@hidden>
- Date: Thu, 4 Mar 2004 11:56:05 -0500
Bless you my son :)
How was this wisdom imparted to you?
Thanks,
--Jerry
On Mar 4, 2004, at 9:21 AM, Satoshi Matsumoto wrote:
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.