Attributed string to HTML: invalid image URLs

2009-02-19 Thread David Sinclair
Hi, I just wrote some code to export an attributed string to a HTML file wrapper, with images within a folder. It works fine, except the image URLs in the HTML are invalid; they are just "file:///" and the image name. Omitting that prefix would make them valid relative URLs. How can I

Re: string to html.

2008-05-16 Thread Jens Alfke
On 16 May '08, at 3:42 AM, [EMAIL PROTECTED] wrote: NSAttributedString*textValue = [[NSAttributedString alloc] initWithString: [self messageField]];//where messageField returns string. That's going to produce an attributed string with no text styles at all, because all you gave it was

string to html.

2008-05-16 Thread vinitha
hi, I've to convert text or image to its corresponding html code. i've done setContentType: @"text/html"; setContentTransferEncoding:None; setCharset: @"us-ascii" NSDictionary*attr = [NSDictionary dictionaryWithObject:NSHTMLTextDocumentType forKey:NSDocumentTypeDocumentAttribute]; NSAtt