Setting the width of an NSTextView automatically
Setting the width of an NSTextView automatically
- Subject: Setting the width of an NSTextView automatically
- From: Simson Garfinkel <email@hidden>
- Date: Tue, 12 Mar 2002 06:11:38 -0500
I'm interested in having an NSTextView that automatically sets its width
to be the width of the longest line, rather than having the lines of
text wrap.
I've tried just setting the width to be 800 pixels, but that isn't quite
right, because it's usually too wide (and thus looks funny in the
scrollbar) and it sometimes is not wide enough.
I've also tried running -[NSText sizetoFit] after each keystroke. That's
really ugly, and it doesn't work either.
Any clues? Please reply to me and the list.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.