On Fri, May 27, 2011 at 11:06 PM, Patrick Robertson <[email protected]> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
