Detect when NSScrollView can be scrolled

63 views Asked by At

How can I detect when there is more text than is showing in NSScrollView?

I have tried various forms of this:

if (self.scrollView.contentSize.height > self.scrollView.bounds.size.height) {
    NSLog (@"Can be scrolled.");
}

".contentSize" and ".bounds" always have the same dimensions.

0

There are 0 answers