Issue round-tripping XHTML through NSTextView
Issue round-tripping XHTML through NSTextView
- Subject: Issue round-tripping XHTML through NSTextView
- From: Glen Simmons <email@hidden>
- Date: Wed, 16 Nov 2005 14:17:55 -0600
I'm using an NSTextView to display and edit XHTML. The XHTML can
contain links to files and the links can be relative or absolute.
Thanks to help from the list, I know how to get relative links to
work properly, using NSBaseURLDocumentOption, but when I translate
back to XHTML, all the links are absolute. Is there a way to preserve
relative vs. absolute?
One thought I had relating to this was to add a custom attribute to
the element before creating the NSAttributedString. I hoped that
custom attributes would be preserved through the round-trip, but
alas, that doesn't seem to be the case. Should custom attributes be
preserved or is there a way to get this to happen? If not, I'll file
a bug.
Thanks,
Glen Simmons
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden