Re: NSTextView wants to wrap too soon
Re: NSTextView wants to wrap too soon
- Subject: Re: NSTextView wants to wrap too soon
- From: John James <email@hidden>
- Date: Sun, 15 May 2005 05:02:46 -0400
On May 15, 2005, at 1:58 AM, Andy Lee wrote:
On May 14, 2005, at 9:48 PM, John James wrote:
NSTextContainer* myTextContainer =[theText textContainer];
NSSize mySize = [myTextContainer containerSize];
mySize.width = 10000 ;
[myTextContainer setContainerSize:mySize];
[myTextContainer setWidthTracksTextView:YES];
[myTextContainer setHeightTracksTextView:NO];
The docs for -setWidthTracksTextView: say:
Controls whether the receiver adjusts the width of its bounding
rectangle when its NSTextView is resized.
Since you set it to YES, might this be negating the effect of -
setContainerSize:?
I switched this to NO and get the same results.
--Andy
_______________________________________________
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
_______________________________________________
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