• 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
Re: NSTextView wants to wrap too soon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSTextView wants to wrap too soon (From: John James <email@hidden>)
 >Re: NSTextView wants to wrap too soon (From: Andy Lee <email@hidden>)
 >Re: NSTextView wants to wrap too soon (From: John James <email@hidden>)

  • Prev by Date: Re: From Panther to Tiger
  • Next by Date: Re: Binding to an array.name, how?
  • Previous by thread: Re: NSTextView wants to wrap too soon
  • Next by thread: launch safari to open an url
  • Index(es):
    • Date
    • Thread