• 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: Dynamic right-sizing of TextContainer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic right-sizing of TextContainer


  • Subject: Re: Dynamic right-sizing of TextContainer
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 29 Aug 2008 11:13:17 -0700


On Aug 29, 2008, at 11:01 AM, Martin Stoufer wrote:

I am able to set the initial height/width of the NSTextContainer object of a NSTextView object in IB. However, I cannot find any method that will allow the programmatic re-sizing of the container when the text I'm adding exceeds this size.

Don't do this. NSTextView handles this automatically for you. See / Developer/Examples/AppKit/TextSizingExample for examples of various different ways to set up a text view depending on how you want it to resize vertically, horizontally, etc. If the width is fixed and you just want the container to size properly vertically, you don't need to do anything; the stock NSTextView you create in IB should be fine.


Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Dynamic right-sizing of TextContainer (From: Martin Stoufer <email@hidden>)

  • Prev by Date: Re: File Extensions Problem
  • Next by Date: Convert unicode string into ascii
  • Previous by thread: Dynamic right-sizing of TextContainer
  • Next by thread: Re: Dynamic right-sizing of TextContainer
  • Index(es):
    • Date
    • Thread