• 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: Safari bookmarks...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Safari bookmarks... (From: Amit8 J <email@hidden>)

  • Prev by Date: Re: Safari bookmarks...
  • Next by Date: Re: Apples's code examples... It is me
  • Previous by thread: Re: Safari bookmarks...
  • Next by thread: Re: Safari bookmarks...
  • Index(es):
    • Date
    • Thread