• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Turning off Text Wrapping in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Turning off Text Wrapping in NSTextView (From: Max Cantor• <email@hidden>)

  • Prev by Date: Re: CFNetwork?
  • Next by Date: All those Books
  • Previous by thread: Turning off Text Wrapping in NSTextView
  • Next by thread: Re: Unexpected behavior of NSNumberFormatter
  • Index(es):
    • Date
    • Thread