I'm trying to export the content of my NSTextView to an HTML page.
I get the HTML code using
NSDictionary *attributes = [NSDictionary
dictionaryWithObjectsAndKeys:NSHTMLTextDocumentType,
NSDocumentTypeDocumentAttribute, nil];
NSData *htmlData = [textView dataFromRange:editedRange
On Jan 4, 2014, at 3:03 AM, Leonardo wrote:
> I'm trying to export the content of my NSTextView to an HTML page.
> I get the HTML code using
>
> NSDictionary *attributes = [NSDictionary
> dictionaryWithObjectsAndKeys:NSHTMLTextDocumentType,
> NSDocumentTypeDocumentAttribute, nil];
> NSData
HereĀ¹s the repository containing my HTML pages
https://github.com/leonardodev/htmlpages
Regards
-- Leonardo
Da: Jens Alfke
Data: Sat, 4 Jan 2014 13:40:09 -0800
A: Leonardo
Cc:
Oggetto: Re: NSHTMLTextDocumentType returns wrong font names
On Jan 4, 2014, at 3:03 AM, Leonardo wrote:
>