• 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
NSTextView to HTML (or XHTML)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView to HTML (or XHTML)


  • Subject: NSTextView to HTML (or XHTML)
  • From: Mark Dawson <email@hidden>
  • Date: Mon, 24 Jul 2006 11:49:47 -0700

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
 _______________________________________________
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

  • Prev by Date: Re: Determine Application Architecture
  • Next by Date: Hijacking NSCursor
  • Previous by thread: Re: Determine Application Architecture
  • Next by thread: Re: NSTextView to HTML (or XHTML)
  • Index(es):
    • Date
    • Thread