NSScrollView & its width
NSScrollView & its width
- Subject: NSScrollView & its width
- From: Knut Lorenzen <email@hidden>
- Date: Thu, 4 Feb 2010 22:45:44 +0100
Dear List,
an NSScrollView ("Show Horizontal Scroller" in IB checked) contains an NSTextView that displays some RTFD-data, including some pictures. However, the Horizontal Scroller is not shown. BTW, TextEdit seems to behave exactly the same.
Logging [[myScrollView documentView] frame].size.width shows that it has the same value than [[myScrollView contentView] frame].size.width. Please note the difference: documentView vs. contentView. That is, it looks like the documentView does not notice the presence of pictures wider than the contentView?!
I've tried setting the documentView's frame width to the width of the largest picture. That sort of works, but as soon as the window (or the view) is resized, everything snaps back to the undesired state.
Looking forward to ideas/hints/clues/advice.
Cheers,
Knut
_______________________________________________
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