Re: Drag&Drop of text files
Re: Drag&Drop of text files
- Subject: Re: Drag&Drop of text files
- From: email@hidden
- Date: Mon, 11 Mar 2002 11:59:45 -0800
Is there any way to import the content of a text file via drag&drop in a
NSTextView?
Only an icon is imported. You can see this behavior with TextEdit.app.
In a vanilla NSTextView, not that I know of.
In your own NSTextView subclass, of course, it would be easy to do.
Just override some or all of the methods in the NSDraggingDestination
protocol as necessary. Call super in most cases, but if the drag is a
file and you want to take it yourself, do your own processing and don't
call super. The protocol methods are all pretty clearly documented.
Ben Haller
Stick Software
_______________________________________________
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.