Resizing

jdog

Not a Moderator
How would I get an NSTextView to resize itself when the window is resized? I assume I need to change the width as the window is resized, but I have to idea when/how to update that?

-jdog
 
Hello!

Click on your text box and hit command-shift-i. Select "Size" from the popdown menu. At the bottom of the windw you will see a graphic that looks like a window with lines running through the horizontal and vertical centers. Click the horizontal line on the inside of the window graphic, you will see the lines inside the window curl (make sure this is the INSIDE of the window graphic and not the outside). Now repeat this step with the vertical line. Run your app and enjoy the results!

Have a great day!

Albert
 
That is just too easy. It doesn't even feel like programming :D .

Thanks for the help!

-jdog
 
Back
Top