NSTextView wants to wrap too soon
NSTextView wants to wrap too soon
- Subject: NSTextView wants to wrap too soon
- From: John James <email@hidden>
- Date: Sat, 14 May 2005 21:48:57 -0400
I have a NSTextView in a tab view. i have adjusted the default size of the textview quite wide: 1126. I am using NSTextView insertText: method to put my text into the view through an outlet from my window controller. The text wraps before it should. : There are no special characters in the stream. I can copy the text into bbedit with no wrapping.
In the Windowcontroller I tried setting the width of the NSTextContainer really wide to make sure there is no wrapping: NSTextContainer* myTextContainer =[theText textContainer]; NSSize mySize = [myTextContainer containerSize]; mySize.width = 10000 ; [myTextContainer setContainerSize:mySize]; [myTextContainer setWidthTracksTextView:YES]; [myTextContainer setHeightTracksTextView:NO]; But it did not work. any ideas?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden