• 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: Accepting url drags directly from safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accepting url drags directly from safari


  • Subject: Re: Accepting url drags directly from safari
  • From: zeno <email@hidden>
  • Date: Sat, 28 Feb 2004 10:44:20 +0100

Yep. Safari uses the "BookmarkDictionaryListPboardType" pasteboard type for dragging. Something along these lines should do the trick...

[myDropTarget registerForDraggedTypes: [NSArray arrayWithObjects: @"BookmarkDictionaryListPboardType", @"MozURLType", NSFilenamesPboardType, NSURLPboardType, NSStringPboardType, nil]];

yeah, that should work, but only if you drop the url on a window or view. And it won't work dropping the url on the application's icon ("droplet").

In fact, "registerForDraggedTypes:" is only defined for an NSWindow and an NSView...and even if I add my droplet to the dock, I don't think there's a way to get access to the View object in the Dock....

....or am I wrong?
_______________________________________________
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.


References: 
 >Accepting url drags directly from safari (From: zeno <email@hidden>)
 >Re: Accepting url drags directly from safari (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Array Operators & array controllers
  • Next by Date: Re: how to create status bar?
  • Previous by thread: Re: Accepting url drags directly from safari
  • Next by thread: Re: Accepting url drags directly from safari
  • Index(es):
    • Date
    • Thread