Skip navigation.
 
mlNSTextView to HTML (or XHTML)
FROM : Mark Dawson
DATE : Mon Jul 24 20:49:47 2006

There are routines to convert NSTextViews to RTF/RTFD, and inport RTF/RTFD/HTML.  However, I don't see anything that EXPORTs/saves to HTML (or XHTML).  I have some pretty simple (bold/plain style) NSAttributedText that I'd like to export to XHMTL.  The text may be UTF-16 (Japanese) or UTF-8 (US, etc).

The closest I've seen for exporting seems to be NSAttributedText's dataFromRange:documentAttributes:error:, possible using NSExcludedElementsDocumentAttribute string (I'm OK with 10.4-only).

Is this the right direction to go? Can anyone point me to any example code (I couldn't seem to find any in my net searching)?

Thanks!

Mark

Related mailsAuthorDate
mlNSTextView to HTML (or XHTML) Mark Dawson Jul 24, 20:49
mlRe: NSTextView to HTML (or XHTML) Keith Blount Jul 24, 21:28