Questions tagged [nsscroller]
47 questions
2
votes
0 answers
Issue with NSScrollView
I have a NSScrollView containng an iKImageBrowserView. If I do not call setWantsLayer:YES on the scrollview, the vertical scroller is never shown.
Do you know what can be the issue and hos to fix it (activating layers creates other issues in my…

AP.
- 5,205
- 7
- 50
- 94
2
votes
1 answer
Equivalent of UIScrollViewDelegate in Cocoa?
I am implementing a custom NSScroller class and I need to know when the scrollview is about to scroll and when it finished doing so. What would be an equivalent of UIScrollViewDelegate's viewDidScroll, etc for NSScrollView/NSScroller?

nacho4d
- 43,720
- 45
- 157
- 240
2
votes
4 answers
How to make Scroller background transparent in NSScrollView?
I've used Storyboard to set up the NSScrollView and I cannot find any option where I can disable the scroller's background. Any ideas on how to make this happen?

dbrownjave
- 437
- 1
- 8
- 19
2
votes
1 answer
How to use NSScroller in a custom NSView
I have a custom NSView with two NSClipViews. I want to add a vertical scroller for each clipview. The snippet below shows a NSScroller, but it is not drawing any knob or buttons. Interaction is also not possible.
NSScroller is a small class, so I am…

user965972
- 2,489
- 2
- 23
- 39
2
votes
1 answer
Scroller's background at NSTableView
How can I change background color of scroller at NSTableView? For example I've made black background color of my TableView and got white scroller, I want ClearColor or Black color of Scroller's background. How can I make it?

Vasily
- 3,740
- 3
- 27
- 61
2
votes
1 answer
Custom NSScroller issues
I'm trying to subclass NSScroller in order to draw my own scroller knob. To do this, I've subclassex NSScrollView and usex the following code to instantiate my custom NSScrollers:
- (void)awakeFromNib;
{
NSRect horizontalScrollerFrame = [[self…

ndg
- 2,585
- 2
- 33
- 58
2
votes
2 answers
NSTableViewHeaderView not drawing over NSScroller
I've got a custom NSTableHeaderView of custom NSTableHeaderCell objects that draw a custom header. The problem I'm having is that when the NSScroller bars show up, the header drawn above the scroller is the default, not my custom drawing.

fattjake
- 116
- 1
- 4
2
votes
1 answer
NSScroller graphical glitches/lag
I have the following NSScroller subclass that creates a scroll bar with a rounded white knob and no arrows/slot (background):
@implementation IGScrollerVertical
- (void)drawKnob
{
NSRect knobRect = [self rectForPart:NSScrollerKnob];
NSRect…

indragie
- 18,002
- 16
- 95
- 164
1
vote
0 answers
How to detect when a user, and only a user scrolls an NSScrollView
Does anyone know a way to detect when an NSScrollView is scrolled by user input, and only user input)?
The reason I want to do this is because I have a NSScrollView with a contentView that is continuously increasing it's width. I want the…
user1244290
1
vote
1 answer
NSScrollView and lion .. is it possible to only show scrollbars when scrolling
Is it possible to have an NSScrollView ignore the system preferences setting and only show scrollers when scrolling. My application is designed for the overlay style scrollers only unfortunately, so I want to avoid having to adjust the containing…

Larvell Jones
- 159
- 2
- 15
1
vote
3 answers
How can I automatically hide an NSScroller in Lion?
I have an NSScroller that is used to scroll some complete custom view of mine. With [scroller setScrollerStyle:[NSScroller preferredScrollerStyle]] I get the correct style of the scroller. Now when the scroller has NSScrollerStyleOverlay, I assumed…

V1ru8
- 6,139
- 4
- 30
- 46
1
vote
2 answers
Set vertical scroller style in NSScrollView
How can I set the vertical scroller style in NSScrollView?

user718408
- 101
- 1
- 14
1
vote
1 answer
How to make knob track of a NSScroller transparent?
This is my application screenshot.There is only one NSScrollView on the window.I have made the other parts of the scrollview transparent,except the knob slot.
Here is my draw code for custom NSScroller subclass.
- (void) drawRect:…

Li Fumin
- 1,383
- 2
- 15
- 31
1
vote
0 answers
How to autoscroll an NSTextView smoothly in a specific time period?
How can I autoscroll an NSTextView smoothly in a specific time period (like a teleprompter)?
For example: The time period amounts 4 minutes. The NSTextView should be at the beginning of the the text in minute 0 and at the end in minute 4.

Flocked
- 1,898
- 2
- 36
- 57
1
vote
2 answers
Detecting Vertical NSScroller hitting bottom in NSTableView
Let's Say i loaded 100 rows in a table in awakeFromNib: , Now i want to call a method when the vertical scroller hits the bottom. Could anyone let me know how to handle the event of NSScroller hitting the bottom and calling a method when this…

john fedric
- 167
- 1
- 11