• 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
Re: NSTextStorage setAttributedString problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSTextStorage setAttributedString problems (From: Will Thimbleby <email@hidden>)

  • Prev by Date: Re: runModalForWindow allows window switching
  • Next by Date: Getting path of a process
  • Previous by thread: NSTextStorage setAttributedString problems
  • Next by thread: Re: searching a Unicode string in a text
  • Index(es):
    • Date
    • Thread