Re: Dragging URL clippings into a Cocoa app
Re: Dragging URL clippings into a Cocoa app
- Subject: Re: Dragging URL clippings into a Cocoa app
- From: Greg Titus <email@hidden>
- Date: Sat, 24 Aug 2002 13:06:06 -0700
URL clippings use a drag type that there isn't specific Cocoa API for.
You need to register for the type:
@"CorePasteboardFlavorType 0x75726C20"
... the number is hex for the four character constant 'url ' (note the
space at the end).
In general, this is how you tell a Cocoa app about Carbon/Classic drag
flavors - they are all CorePasteboardFlavorType X, where X is the
hexadecimal representation of the Carbon/Classic four character code.
Hope this helps,
- Greg
On Saturday, August 24, 2002, at 11:58 AM, Chris Boot wrote:
Hi,
I'm writing an open-source link manager called WebPad
(http://sourceforge.net/projects/tmdcwebpad/) and I've run into a
problem.
I've allowed NSStrings to be dragged into my Outline View, and I can
drag
links in from all applications EXCEPT I can't seem to drag URL
clippings in
at all. What do I need to do to accept a URL clipping drag and just
use the
URL that it contains (instead of the path to the clipping, which is
what I
get if I use NSURLPboardType) ?
Thanks,
--
Chris Boot
email@hidden
"Use the source, Luke." - Obi-Wan Gnuobi
_______________________________________________
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.
_______________________________________________
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.