• 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: Anchor in TextView HTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Anchor in TextView HTML (From: Stefan Lange-Hegermann <email@hidden>)

  • Prev by Date: Re: Inserting a graphic
  • Next by Date: Re: Distributed Object through the Net
  • Previous by thread: Anchor in TextView HTML
  • Next by thread: Re: Anchor in TextView HTML
  • Index(es):
    • Date
    • Thread