• 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: Increasing NSTextView's height
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Increasing NSTextView's height


  • Subject: Re: Increasing NSTextView's height
  • From: Graham Cox <email@hidden>
  • Date: Mon, 1 Sep 2008 21:03:27 +1000


On 1 Sep 2008, at 7:52 pm, chaitanya pandit wrote:

But even if i change the textView's frame by increasing it's height so that it occupies the bottom most subview, i don't see the vertical scroller. Am i missing something?


NSTextView doesn't have a vertical scroller on its own. If you put it inside an NSScrollView then it could do. (IB does set it up this way by default, did you create the view this way or programatically?).

Increasing frame height doesn't force a hidden scrollbar to show - having more text than can be shown in the frame does though, which implies that making the frame *smaller* would be the more likely way to go there.

Remember: frame size = area occupied in the parent view. bounds = area logically occupied by the text + any subviews. So it's the bounds you need to increase to ensure that any subviews are properly covered by it. If the bounds > frame, the scrollbars will show if there are any there that can be shown.

hth,

Graham
_______________________________________________

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: 
 >Increasing NSTextView's height (From: chaitanya pandit <email@hidden>)

  • Prev by Date: how to delete the current user's directory?
  • Next by Date: QTCaptureConnectionEnabledAudioChannelsAttribute read only
  • Previous by thread: Increasing NSTextView's height
  • Next by thread: how to delete the current user's directory?
  • Index(es):
    • Date
    • Thread