Re: Accepting url drags directly from safari
Re: Accepting url drags directly from safari
- Subject: Re: Accepting url drags directly from safari
- From: Peter Maurer <email@hidden>
- Date: Tue, 2 Mar 2004 23:55:01 +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").
Oh, "droplet", I see... I had overlooked that. And I'm afraid I have no
idea what to do in this case.
Peter.
_______________________________________________
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.