Re: Turning off Text Wrapping in NSTextView
Re: Turning off Text Wrapping in NSTextView
- Subject: Re: Turning off Text Wrapping in NSTextView
- From: Greg Titus <email@hidden>
- Date: Thu, 27 Dec 2001 13:43:17 -0800
On Thursday, December 27, 2001, at 01:00 PM, Max Cantor wrote:
Hello,
I'm working on a project which requires an NSTextView to display
text which doesn't wrap and simply scrolls horizontally in addition to
vertically. However, as much as I try, NSTextView refuses to do this,
it either wraps the text or clips it, leaving some to the right
invisible, but wont scroll to the right (the scroll bar is greyed out
as if all text were visible). I have tried every combination of the
following lines of code:
Hi Max,
Check out /Developer/Examples/AppKit/TextSizingExample, which is an
example project that shows you how to set up an NSTextView the way you
are asking here, as well as a bunch of other useful permutations.
(You'll want the BiScrollAspect.)
Hope this helps,
--Greg