Re: NSTextStorage setAttributedString problems
Re: NSTextStorage setAttributedString problems
- Subject: Re: NSTextStorage setAttributedString problems
- From: Jeremy Dronfield <email@hidden>
- Date: Fri, 20 Sep 2002 12:20:55 +0100
On Friday, September 20, 2002, at 11:39 am, Will Thimbleby wrote:
Or is there a better way to set the html of a NSTextView?
An alternative is to bypass textStorage:
attr = [[[NSAttributedString alloc] initWithHTML:html
documentAttributes:NULL] autorelease];
[textBox setString:@""];
[textBox setEditable:YES]; <= might not need this
[textBox insertText:attr];
[textBox setEditable:NO];
-Jeremy
========================================
email@hidden // email@hidden
The Alchemy Pages:
- fractious fiction at
http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.