• 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: URL Parsing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL Parsing


  • Subject: Re: URL Parsing
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 28 Apr 2009 13:15:14 +0100

Also have a look at:
http://trac.adiumx.com/wiki/AutoHyperlinksFramework

On 28 Apr 2009, at 05:05, Mr. Gecko wrote:

One thing I can try is to put every word in a array, go through them, see if they contain http or https in the beginning, if so add <a href="URL">URL</a> to it.

On Apr 27, 2009, at 10:01 PM, Ken Thomases wrote:

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

_______________________________________________

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


  • Follow-Ups:
    • Re: URL Parsing
      • From: "Mr. Gecko" <email@hidden>
References: 
 >URL Parsing (From: "Mr. Gecko" <email@hidden>)
 >Re: URL Parsing (From: Ken Thomases <email@hidden>)
 >Re: URL Parsing (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: soft line breaks in NSLayoutManager
  • Next by Date: Re: Scheduling application
  • Previous by thread: Re: URL Parsing
  • Next by thread: Re: URL Parsing
  • Index(es):
    • Date
    • Thread