Coming from an iOS background, I presumed that NSScrollView
would work out of the box, and I presumed that contentSize
would reflect the size of the documentView
passed to it. This is not the case, if the NSScrollView
is created programmatically.
First issue was: why does contentSize
not update when a document view is passed in.
Second issue was: why can I not scroll the scroll view, despite the fact there was more content.