Re: Help: Non-wrapping NSTextView
Re: Help: Non-wrapping NSTextView
- Subject: Re: Help: Non-wrapping NSTextView
- From: Mike Ferris <email@hidden>
- Date: Sat, 21 Dec 2002 09:40:02 -0800
See the TextSizingExample. It shows how to set up the text stuff in a
variety of ways including non-wrapping with horizontal scroller. It is
easy to configure.
Mike
Begin forwarded message:
From: Timothy Mowlem <email@hidden>
Date: Sat Dec 21, 2002 1:55:57 AM US/Pacific
To: email@hidden
Subject: Help: Non-wrapping NSTextView
Hello,
I am trying to write a simple text editor for editing, e.g. source
code, to improve
my understanding of Cocoa.
Please can someone tell me if it's possible to make an NSTextView not
wrap
horizontally, and if so how you do it?
The default is the wrap text horizontally if you type past the edge of
the control.
This behaviour is the same if you add the NSTextView to an NSScrollView
as you might when creating a document window.
I would like the text to just go on a single line until I press Return
and for the
horizontal scrollbar (present if the NSTextView is embedded in a
NSScrollView)
to resize automatically.
I have checked the Cocoa docs for most of the Cocoa text system
classes and
several books but not found anything. Interface Builder does not have
a setting
to toggle this, and TextEdit apparently cannot do this.
Thanks in advance.
Timothy Mowlem
_______________________________________________
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.
_______________________________________________
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.