Re: URL Parsing
Re: URL Parsing
- Subject: Re: URL Parsing
- From: Ken Thomases <email@hidden>
- Date: Mon, 27 Apr 2009 22:01:23 -0500
On Apr 27, 2009, at 8:57 PM, Mr. Gecko wrote:
Hello, I'm trying to parse out urls in a string and make them into
html links so when I put the string into webview people can click
them.
Any help?
I haven't done any work with WebKit, but NSTextView and
NSAttributedString have facilities for URL detection, so I wouldn't be
surprised to find that WebView does, too.
See -[NSAttributedString URLAtIndex:effectiveRange:] and -[NSTextView
setAutomaticLinkDetectionEnabled:].
Cheers,
Ken
_______________________________________________
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: | |
| >URL Parsing (From: "Mr. Gecko" <email@hidden>) |