Dragging zaps into an NSTextView
Scott Anguish
sanguish at digifix.com
Mon Aug 17 20:21:46 PDT 1998
Chris Osborn wrote:
> So what do I have to do to my NSTextView to get it to accept dragging
> a zap into it? Right now it just totally ignores me. I want to be
> able to drop the URL in, and have it paste like text.
>
> Am I actually going to have to subclass it? Or is there a pasteboard
> type I can get it to register, and it'll just work?
Grab the source to HTMLEdit
(http://www.stepwise.com/Articles/Technical/HTMLEdit)
There is a special pasteboard type available, (its documented in the
source in the 2nd and 3rd article in the series).
My HTTextView does just what you need, and is included in the
article series in two versions. The first uses the conventional drag and
drop APIs and the second uses the whizzy new Text Drag and Drop APIs that
make things easier.
More information about the OmniWeb-l
mailing list