Forgive me for this being a fairly vague question on NSScrollView
classes. I am just not really understanding them, despite having read up on them a bunch.
I have a NSViewController
subclass which has a xib
. In this view I drop in an NSScrollView
. I connect an IBOutlet
from the view controller class.
This is where I get confused.
What is the difference between the NSScrollView
documentView
and clipView
? When added inside the xib
the scrollview is given an NSClipView
. Why?
If I want to add a subview to my scrollview inside the xib
, I can only drop a view into the NSClipView
of the NSScrollView
and not the scrollview directly. I also see, when I resize the NSClipView
so that itself, clips a subview I dropped in, scroll bars appear on the scrollview. However, when I run my app, I can't scroll. Secondly, the subviews don't appear when the app is running anyway.
Would someone explain how an NSScrollView works? Everything I have read on it thus far hasn't made it click with me.