How to configure a NSTextView with a NSTextStorage?
How do you store the NSTextView's information 开发者_Python百科with an NSTextStorage?
See Assembling the Text System by Hand in the Cocoa Text Architecture Guide.
Apparently each NSTextView comes with it's own NSTextStorage already. Just use the textStorage method to get the textStorage of the NSTextView
精彩评论