• 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: Making NSTextView scoll horizontally
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Making NSTextView scoll horizontally (From: Chris Boot <email@hidden>)

  • Prev by Date: Profiling with gprof
  • Next by Date: Re: Is there a decent Obj-C for Windows?
  • Previous by thread: Making NSTextView scoll horizontally
  • Next by thread: link warning : prebind?
  • Index(es):
    • Date
    • Thread