Re: Setting the width of an NSTextView automatically
Re: Setting the width of an NSTextView automatically
- Subject: Re: Setting the width of an NSTextView automatically
- From: email@hidden
- Date: Fri, 15 Mar 2002 17:46:35 -0800
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.
This question was very recently answered on this list. Please check
the archives.
Ben Haller
Stick Software
_______________________________________________
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.