Re: Making NSTextView scoll horizontally
Re: Making NSTextView scoll horizontally
- Subject: Re: Making NSTextView scoll horizontally
- From: Charles Jolley <email@hidden>
- Date: Mon, 24 Sep 2001 08:58:55 -0500
To make the text view grow horizontally to fit text, simply send
-setHorizontallyResizable: YES to the NSTextView instance. This will
cause the text view to grow as wide as it needs to in order to fit your
text. As far as I know there is no way to put a limit on how wide it
can become.
Note that if you are using the text view in IB, the actual object
created is an NSScrollView containing an NSTextView, so to get the text
view, you would need to use -documentView.
Hope that helps,
-Charles
On Sunday, September 23, 2001, at 04:49 PM, Chris Boot wrote:
Hi,
I'm making a text editor for editing HTML and such code, and need a way
of
getting an NSTextView to scroll horizontally rather than wrap text.
I've
tried several ways of doing so, all to no avail. Is there any way of
doing
so? If not, then how does Project Builder do it when you turn of text
wrapping?
Thanks,
--
Chris Boot
email@hidden
Your mouse has moved. You must restart Windows NT
for this change to be recognized.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev