How to get a scroll view to recognize overflow on a custom view?
How to get a scroll view to recognize overflow on a custom view?
- Subject: How to get a scroll view to recognize overflow on a custom view?
- From: Ken Tozier <email@hidden>
- Date: Mon, 23 Mar 2009 00:12:17 -0400
Hi
I have a custom view inside a scroll view and all works nicely except
when the custom view's contents exceeds the depth of the scroll view.
The scroll bars don't appear. I created the scroll view in IB from a
standard widget and did nothing more than set the class of default
content view to my custom class.
I read the NSScrollView docs and the companion "Scroll View
Programming Guide for Cocoa" and notice that neither the contentView
nor the documentView are available from inside IB. I looked at the
different IB data views with scroll bars, checking what their outlets
are and tried setting mine up the same, but they must be doing
something behind the scenes.
What do I need to do to get the scroll view to notice when my custom
view exceeds it's depth?
_______________________________________________
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