• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dragging URL clippings into a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Dragging URL clippings into a Cocoa app
      • From: Chris Boot <email@hidden>
References: 
 >Dragging URL clippings into a Cocoa app (From: Chris Boot <email@hidden>)

  • Prev by Date: Dragging URL clippings into a Cocoa app
  • Next by Date: (no subject)
  • Previous by thread: Dragging URL clippings into a Cocoa app
  • Next by thread: Re: Dragging URL clippings into a Cocoa app
  • Index(es):
    • Date
    • Thread