jvnbt
jvnbt

Reputation: 2505

NSScrollView not working on Mountain Lion

Im testing my app on Mountain Lion, and now nothing shows up in my document view after i do "setDocumentView" on my scrollView. If I remove "setDocumentView" the subviews of docView show up, but obviously I am then unable to control the scrolling.

Any idea what they changed or why this is?

Upvotes: 4

Views: 401

Answers (1)

Olli Draese
Olli Draese

Reputation: 33

I was working on an IKImageView in a NSScrollView myself for some hours now. Adjusting the size of the document was not enough at all. But it works also fine under Mountain Lion. All I had to do was:

scroller.hasVerticalScroller = YES;
scroller.hasHorizontalScroller = YES;

Upvotes: 1

Related Questions