• 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
Dragging webloc files within application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dragging webloc files within application


  • Subject: Dragging webloc files within application
  • From: Jeremy Dronfield <email@hidden>
  • Date: Wed, 28 Apr 2004 15:05:08 +0100

This issue should be dead simple, but it's driving me up the wall. I want to be able to drag webloc files out of a table view and drop them into a text view. I can let the text view handle inserting the URL from the file (since it's set up to do so by default). My problem is getting the damn thing onto the drag pasteboard in the first place. Which property lists do I use? I've tried NSFilenamesPboardType, NSURLPboardType, NSFileContentsPboardType, NSStringPboardType, and various combinations thereof, but none work. How does the Finder do it? I've tried picking apart the pasteboard contents when a webloc is dragged in from the Finder (which works perfectly), but can't glean anything useful from the data.

Grateful for any pointers...

Regards,
-Jeremy
_______________________________________________
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.


  • Prev by Date: Re: Problems with XCode 1.2
  • Next by Date: Re: clickedOnLink called outside of the link
  • Previous by thread: Re: Releasing a sub-view
  • Next by thread: Enable Objective-C exception handling. [-fobjc-exceptions] causes additional warnings on pointers?
  • Index(es):
    • Date
    • Thread