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

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

  • Follow-Ups:
    • Re: NSTextView wants to wrap too soon
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: FSCopyObjectAsync: useless and crippled
  • Next by Date: Re: NSManagedObjectContextObjectsDidChangeNotification in loaded nibs
  • Previous by thread: Re: Moving to CoreData - List attributes
  • Next by thread: Re: NSTextView wants to wrap too soon
  • Index(es):
    • Date
    • Thread