Alex Rivera | Logout

Hide scrollers while leaving scrolling itself enabled in NSScrollView

Asked 2012-02-20T16:49:20.240
13

I'd like to hide the NSScrollers of NSScrollView. I'm aware of the methods setHasHorizontalScroller: and setHasVerticalScroller:. However, if I disable the scrollers, scrolling in that direction gets disabled as well. I'd like to only hide the scrollers while maintaining the possibility to scroll. Any thoughts on this?

Edit
Report

1 Answer

0

Have you checked the NSScrollView Class Reference ?

[scrollView setHasVerticalScroller:NO];

this method doesn't disable scrolling.

If you still do not want to use that method you can also:

[scrollView setHorizontalScroller:nil];
answered 2012-02-20T17:37:52.200

Your Answer