Re: Anchor in TextView HTML
Re: Anchor in TextView HTML
- Subject: Re: Anchor in TextView HTML
- From: Drew McCormack <email@hidden>
- Date: Tue, 20 Nov 2001 15:53:45 +0100
Using NSScanner is a good way to quickly scan strings. I think there is
a method "scanUpToString:" or something like that. If you write
[scanner scanUpToString:@"<"];
you should be set. You can then use other NSScanner methods to determine
if the string is a HTML tag or not. You can probably do it all in half a
dozen lines with NSScanner.
Drew McCormack
On Tuesday, November 20, 2001, at 12:14 , Stefan Lange-Hegermann wrote:
Hi!
I have some TextView in my Application, which contains HTML (formatted,
not plain).
I am looking for some easy way to jump to anchors inside the HTML ( <a
name="Test">Test</a> )
Any Ideas?
Stefan
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
================================
Dr. Drew McCormack
Department of Theoretical Chemistry
Science Faculty
Free University Amsterdam
De Boelelaan 1083
1081 HV Amsterdam
The Netherlands
Email :: email@hidden
Tel. :: +31 20 44 47623
Fax :: +31 20 44 47629