• 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: Andy Lee <email@hidden>
  • Date: Sun, 15 May 2005 01:58:55 -0400

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:?


--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


  • Follow-Ups:
    • Re: NSTextView wants to wrap too soon
      • From: John James <email@hidden>
References: 
 >NSTextView wants to wrap too soon (From: John James <email@hidden>)

  • Prev by Date: can't save document in Tiger
  • Next by Date: Re: Moving to CoreData - List attributes
  • Previous by thread: NSTextView wants to wrap too soon
  • Next by thread: Re: NSTextView wants to wrap too soon
  • Index(es):
    • Date
    • Thread