View Full Version : NSAttributedString in NSTextView

Jul 17, 2009, 04:31 AM
I am trying to display an NSAttributedString in a NSTextView object by using this method:
[textViewobject insertText:attributedString];

but it is not displaying anything :eek:

Can anyone suggest me how to accomplish it?

Jul 17, 2009, 09:00 AM
From the docs:
This method is the entry point for inserting text typed by the user and is generally not suitable for other purposes.

I'd suggest using the associated NSTextStorage object instead which you can get via textStorage.