• 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: Setting the width of an NSTextView automatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the width of an NSTextView automatically


  • Subject: Re: Setting the width of an NSTextView automatically
  • From: email@hidden
  • Date: Fri, 15 Mar 2002 17:46:35 -0800

I'm interested in having an NSTextView that automatically sets its width
to be the width of the longest line, rather than having the lines of
text wrap.

I've tried just setting the width to be 800 pixels, but that isn't quite
right, because it's usually too wide (and thus looks funny in the
scrollbar) and it sometimes is not wide enough.

I've also tried running -[NSText sizetoFit] after each keystroke. That's
really ugly, and it doesn't work either.

Any clues? Please reply to me and the list.

This question was very recently answered on this list. Please check the archives.

Ben Haller
Stick Software
_______________________________________________
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.

  • Prev by Date: Re: ToolTip help please.
  • Next by Date: Re: NSNumber -> NSString
  • Previous by thread: Setting the width of an NSTextView automatically
  • Next by thread: Re: dumb override question
  • Index(es):
    • Date
    • Thread