• 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
TextStorage should read html anchors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TextStorage should read html anchors


  • Subject: TextStorage should read html anchors
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 9 Jan 2007 07:37:15 +0700

I have a home grown editor, which does does support anchors.
When I read in a html page via: readFromURL:options:documentAttributes:error:.
the local links on this page will be converted using the NSBaseURLDocumentOption in options.


First problem: I would like to use NSBaseURLDocumentOption = "" but anything other than an absolut filename seems not to work.
Any ideas? (except using NSBaseURLDocumentOption = "/ aVeryUnusualFilename" and then doing a replacement later on, which of course fails if someone uses "aVeryUnusualFilename" in a real link).


Second (and bigger) problem: The anchors on this page just get lost.
Is there some way to get these anchor positions? Like a delegate used in the translation from html to NSTextStorage which gets sent something like:
- (NSAttributedString *)textToBeInsertedForAnchor: (NSString *) anchorFoundInHtml .


Or some other suggestion how to get at these anchors ?

Gerriet.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Zero-padding an NSNumberFormatter
  • Next by Date: Re: Why would -[NSString dataUsingEncoding:allowLossyConversion:] throw exception?
  • Previous by thread: Re: Zero-padding an NSNumberFormatter
  • Next by thread: Programmatically creating NSScrollView in an NSTabView
  • Index(es):
    • Date
    • Thread