TextStorage should read html anchors
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