As correct as that seems, that's not the way you're supposed to change the content of an NSTextView programmatically. To change the content of a textview in code, you manipulate the view's text storage.
[[textViewobject textStorage] setAttributedString:attributedString];
1 to 3 of 3