You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser.
macrumors regular
Original poster
I am trying to display an NSAttributedString in a NSTextView object by using this method:
[textViewobject insertText:attributedString];
but it is not displaying anything
Can anyone suggest me how to accomplish it?
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.