Re: Strings mangled on generalPasteboard
Re: Strings mangled on generalPasteboard
- Subject: Re: Strings mangled on generalPasteboard
- From: Jens Alfke <email@hidden>
- Date: Mon, 23 Nov 2009 13:04:35 -0800
On Nov 23, 2009, at 10:30 AM, mmalc Crawford wrote:
> This is no longer true with Mac OS X v10.6 and later -- you can write and read multiple URLs to and from to the pasteboard.
That's nice to know.
> e.g.
> [url pasteboardPropertyListForType:(NSString *)kUTTypeURL]
But that still only writes a single NSURL, right? How do you write multiple using that API?
Another area where WebKit's undocumented pasteboard type is still superior is that it associates names with the URLs — so if the user drags bookmarks out of Safari into your app, you get the titles of the bookmarks as well as the URLs. This is useful for apps like Yojimbo, etc. that want to be able to store dragged-in URLs in mnemonic form.
—Jens_______________________________________________
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