• 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
NSTextView re-implementing word wrapping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView re-implementing word wrapping


  • Subject: NSTextView re-implementing word wrapping
  • From: Ryan Joseph <email@hidden>
  • Date: Mon, 27 Apr 2009 07:24:06 +0700

After reading through the archives I learned how to turn off word wrapping in NSTextView by calling a few methods in both NSText and NSTextContainer but calling them in reverse order (reverting the effect) did not restore word wrapping properly.

In particular I think the problem is setContainerSize. If I set it to a fixed width, text is wrapped but I would like it to follow the view bounds like it did originally. Is there a meta-value or something else I need to give it? Thanks for your ideas.

Regards,
	Josef

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextView re-implementing word wrapping
      • From: Martin Wierschin <email@hidden>
  • Prev by Date: Re: figuring out which TableView I am?
  • Next by Date: Re: figuring out which TableView I am?
  • Previous by thread: RE: Core Data Suddenly Losing Changes
  • Next by thread: Re: NSTextView re-implementing word wrapping
  • Index(es):
    • Date
    • Thread