• 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: Adding HTML data to the general pasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Adding HTML data to the general pasteboard (From: Patrick Robertson <email@hidden>)
 >Re: Adding HTML data to the general pasteboard (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Adding HTML data to the general pasteboard
  • Next by Date: Re: Application Design
  • Previous by thread: Re: Adding HTML data to the general pasteboard
  • Next by thread: How to see a video from YouTube on Iphone
  • Index(es):
    • Date
    • Thread