Re: NSTextView wants to wrap too soon
Re: NSTextView wants to wrap too soon
- Subject: Re: NSTextView wants to wrap too soon
- From: Bruno Gaufier <email@hidden>
- Date: Mon, 16 May 2005 12:15:46 +0200
Hi,
On 15 mai 05, at 11:02, John James wrote:
On May 15, 2005, at 1:58 AM, Andy Lee wrote:
On May 14, 2005, at 9:48 PM, John James wrote:
[snip]
I'm using something like :
NSTextContainer * lContainer = [mConfigFileEditor
textContainer];
NSScrollView * lScroller = [mConfigFileEditor
enclosingScrollView];
[mConfigFileEditor setHorizontallyResizable:YES];
[lContainer setContainerSize:NSMakeSize(10000000,[lContainer
containerSize].height)];
[mConfigFileEditor setMaxSize:NSMakeSize (10000000,
[mConfigFileEditor maxSize].height)];
[lContainer setWidthTracksTextView:NO];
[lScroller setHasHorizontalScroller:YES];
Although I'm not sure it's the good way, it seems to work
(mConfigFileEditor is my NSTextView).
--
Bruno
_______________________________________________
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