Search code examples
objective-ccocoanstextviewnstextstorage

How to configure a NSTextView with a NSTextStorage?


How do you store the NSTextView's information with an NSTextStorage?


Solution

  • Apparently each NSTextView comes with it's own NSTextStorage already. Just use the textStorage method to get the textStorage of the NSTextView