• 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: 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
  • Follow-Ups:
    • Re: NSTextView wants to wrap too soon
      • From: Bruno Gaufier <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>)

  • Prev by Date: Re: Open Dialogs and Save Dialogs
  • Next by Date: Re: FSCopyObjectAsync: useless and crippled
  • Previous by thread: Re: NSTextView wants to wrap too soon
  • Next by thread: Re: NSTextView wants to wrap too soon
  • Index(es):
    • Date
    • Thread