title: How do I make NSTextView grow with text?
body: <p>I am creating a simple word processor where it's possible for the user to add a text box to an <code>NSView</code>, similar to the function in Pages. The problem is that when it's added it will stay the same size no matter how much text the user inputs. I want it to grow as the user inputs text, I have tried with this <a href="https://github.com/jerrykrinock/CategoriesObjC/blob/master/NS(Attributed)String%2BGeometrics/NS(Attributed)String%2BGeometrics.m" rel="nofollow"> GitHub </a> project but when I use it the text field only expands when I have deleted all the text, as if the code doesn't react before the <code>textDidEndEditing</code> method. After working a bit with <code>NSTextView</code> I found that it would be more suitable for the task, but I still can't make it work. I'm running Mavericks and Xcode 5.0.1.</p>
  
  <p>Hope someone can help me! </p>