All pastes #898209 Raw Edit

Untitled

public text v1 · immutable
·published 2008-02-10 04:07 UTC
rendered paste body
		if ( !match.location==NSNotFound )
		{
			// This is a link
			NSURL* theURL = [NSURL URLWithString:pValue];
			NSRange linkRange = NSMakeRange(match.location, [pValue length]);
			[finalName addAttribute:NSLinkAttributeName value:theURL range:linkRange];
		} else {
			// This is NOT a link
		}