Re: Safari bookmarks...
Re: Safari bookmarks...
- Subject: Re: Safari bookmarks...
- From: Citizen <email@hidden>
- Date: Wed, 6 Feb 2008 14:27:17 +0000
As documented NSURLPboardType only works with a single URL.
@"WebURLsWithTitlesPboardType" looks promising but does not appear to
have a constant or to be very well documented so my not be suitable. I
have not yet used it myself. but it may be worth a try.
For Internet Location files dragged from finder you can use
"NSFilenamesPboardType" to get the files, then you can scan each file
for the URL. You have to use Carbon to look in the files resource fork
data for the URL though. I don't know if URLs dragged from Safari
bookmarks give you a file list or not so this may be of no use!
- Dave
On 6 Feb 2008, at 12:23, Amit8 J wrote:
Hi
I need a bit of help. I am working on an application where I need to
catch
dragged and dropped bookmarks from safari . Now when I drag and drop
bookmarks more than one, all I get is the URL of the first bookmark.
I am
using "NSURLPboardType" and the dictionary which I get upon dragging
and
dropping looks like this :-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>feed://rss.news.yahoo.com/rss/topstories</string>
<string></string>
</array>
</plist>
Is there some way I can get the URLs of all the dragged and dropped
bookmarks .Any help would be appreciated.
------
David Kennedy (http://www.zenopolis.com)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden