Re: NSTextView, NSTabView - Frame/Scroll issues?
Re: NSTextView, NSTabView - Frame/Scroll issues?
- Subject: Re: NSTextView, NSTabView - Frame/Scroll issues?
- From: Brian Amerige <email@hidden>
- Date: Fri, 5 Jan 2007 18:10:32 -0500
Hmm. Thanks for the tip to the TextSizingExample. On a quick glance,
I've still a few questions:
Do I necessarily need both the text container and the layout manager,
or can I get by with a scroll view (whose documentView is the text
view)?
I tried setting it up the way the example had, (TextView, Layout
Manager, Scroll View, Text Container) and set my TabViews view
(setView:) to the scrollview, but to success. Either way, in the
meantime I'll look more closely at the example and figure out why it
does what it does, etc.
Thanks in advance,
Brian.
On Jan 5, 2007, at 4:35 PM, Douglas Davidson wrote:
On Jan 4, 2007, at 2:31 PM, Brian Amerige wrote:
It doesn't fill the height of the window (even thought the springs
in IB are accurately set for the NSTabView), but rather it fills
the height to match the size of the document (eg. a 5 line text
file is only a 5 line textview). In the event that the document is
taller (height wise) than the window, it doesn't add a scrollbar,
either.
A lot of people are confused at first because they don't notice
that when they drag out an NSTextView in IB, what they actually get
is an NSTextView inside an NSScrollView. That's the combination
you're looking for. You can also look at the TextSizingExample for
more details on NSTextView sizing.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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