Re: Adding HTML data to the general pasteboard
Re: Adding HTML data to the general pasteboard
- Subject: Re: Adding HTML data to the general pasteboard
- From: Kyle Sluder <email@hidden>
- Date: Fri, 27 May 2011 23:10:38 -0700
On Fri, May 27, 2011 at 11:06 PM, Patrick Robertson
<email@hidden> wrote:
>> 1. If you're running on 10.6....
> I may go this way, and just leave it as it is for 10.5 users.
>> 2. You're seriously simulating keystrokes to paste things in places?...
> Yep, if you can come up with a better alternative, I'd be impressed :)
> Thanks for your help. I was actually in the process of adding a
> `htmlForString` method to my NSString class that would convert a URL into
> its HTML representation (<a href="...url...">...url...</a>
>
> I guess there won't be a need for that now.
Bringing this back on-list…
If you're supporting 10.5 users, then stick with the old API. Use
NSAttributedString to generate RTF and HTML versions of the link and
put them on the pasteboard.
--Kyle Sluder
_______________________________________________
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