Dragging webloc files within application
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.