0
votes

i am creating all the scrollviews on runtime and i want to hide NSScrollView scrollers i am not saying [self setHasVerticalScroller:NO]; however

[self setHasVerticalScroller:YES];
[[self verticalScroller] setHidden:YES];

does not work but there is a option on interface builder if you put scroller on design time. check out the image below.

enter image description here

1

1 Answers

0
votes

You can do it in this way:

NSScrollView *yourTableContainer=....
[yourTableContainer setHasVerticalScroller:NO];
[yourTableContainer setHasHorizontalScroller:NO];