Re: NSTextView re-implementing word wrapping
Re: NSTextView re-implementing word wrapping
- Subject: Re: NSTextView re-implementing word wrapping
- From: Martin Wierschin <email@hidden>
- Date: Mon, 27 Apr 2009 16:55:09 -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?
I suppose you've called setWidthTracksTextView: and
setHeightTracksTextView: as needed? If you post your code it would be
easier to help you.
~Martin
_______________________________________________
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