Questions tagged [nsscroller]

47 questions
8
votes
3 answers

NSScrollview and transparent, overlay NSScroller subclasses

I have made a slick NSScroller subclass, but can't figure out how to make it overlay on top of the NSScrollView instead of pushing the documentView aside. Here you can see the background of a NSCollectionView that I wish to make 100% wide, and have…
coneybeare
  • 33,113
  • 21
  • 131
  • 183
7
votes
5 answers

Can NSScrollView scroll if setHasHorizontalScroller:NO?

Is it possible to 'hide' the scrollers of an NSScrollView and still get gestural scrolling behavior?
NuBee
  • 101
  • 2
7
votes
4 answers

Overlay NSScroller over content

Is there any way to overlay the NSScroller over the content of the scroll view (like in iOS)? I've already tried several approaches: a) setting the frame of the scroll view content view (NSClipView) to extend into the bounds of the scroller b)…
indragie
  • 18,002
  • 16
  • 95
  • 164
7
votes
2 answers

NSScrollView: Override system display settings?

I have a NSScrollView, which was set to: MyNSScrollView.hasHorizontalScroller = YES; MyNSScrollView.hasVerticalScroller = YES; MyNSScrollView.autohidesScrollers = YES; MyNSScrollView.scrollerStyle = NSScrollerStyleOverlay; I noticed that when if…
Cai
  • 3,609
  • 2
  • 19
  • 39
6
votes
2 answers

how to customize NSTokenField like in "To/ CC" fields in mac mail?

I am able to work with NSTokenField, it is easy to use.. but I want your suggestions on how can I customize it just like it is in "To/ CC" fields in mac mail ie. when no. of tokens in a token field increases height of "To" field gets increased to a…
Devarshi
  • 16,440
  • 13
  • 72
  • 125
5
votes
5 answers

How to draw a transparent NSScroller

I'm subclassing NSScroller to try to make it look similar to how "scrollbars" look on iOS. I want it to just be an overlay representing the current position that is drawn OVER what is under it. For whatever reason if I override drawRect for the…
BarrettJ
  • 3,431
  • 2
  • 29
  • 26
5
votes
2 answers

NSTableView infinite scroll or pagination

In relation to How to determine if a user has scrolled to the end of an NSTableView Thanks Josh. Is there a way to use this mechanism to implement a NSTableView that provides some sort of infinite scroll or pagination. The idea is to tell…
Klajd Deda
  • 355
  • 2
  • 7
4
votes
1 answer

Subclass of NSScroller not drawing

I have an NSScrollView and I'd like to know when the user mouseDown's on it's NSScroller. When subclassed NSScroller (to override mouseDown), my NSScrollView's horizontal scroller is no longer drawn/visible. If I override the my NSScroller's…
nubee
  • 61
  • 3
4
votes
0 answers

Discrete (row-by-row) scrolling in NSTextView

How can I implement row-by-row scrolling in an NSTextView object? It has to work regardless of how the user tries to scroll: either if they drag the scroll knob or use a two-finger scroll gesture on the trackpad. Furthermore, the scroll knob should…
4
votes
3 answers

How to change NSScroller color?

I'm trying to change the color of the scroller itself, it seems I need to overwrite something around drawKnob but I couldn't find any method which seemed appropriate. One way I thought about was to inject a new style and get scroller to use it but…
Taiki
  • 629
  • 5
  • 13
3
votes
2 answers

How to create a thin scroll bar in Mac OS X Lion

How would I go about create a thin scroll bar like in the Stickies app on OSX Lion?
David
  • 14,205
  • 20
  • 97
  • 144
3
votes
2 answers

Modifying the length of an NSScroller

I'm using an NSScrollView in my Cocoa application, and I want to customize the length of the horizontal scroller. The content of the scroll view is broken up into two main areas: a fixed-width area on the left and a dynamic-width area on the right.…
jlong64
  • 928
  • 10
  • 13
3
votes
1 answer

Drawing custom NSScroller in NSScrollView problem

I'm trying to draw a custom NSScroller and I got mostly everything I wanted to work to work but, when I try and get rid of the knobSlot, it will just continuously re-draw the knob: That is when I use drawRect: to draw the background out. When I…
timothy5216
  • 280
  • 5
  • 18
3
votes
0 answers

Centering view in scroll view

I have an NSView embedded inside a NSScrollView. When changing the magnification in my app I'm changing the view's frame by adjusting the constraints and calling layoutSubtree:. Now I'd like to center the same area of the view after changing the…
cacau
  • 3,606
  • 3
  • 21
  • 42
3
votes
1 answer

Subclassing NSScroller, how to get rid of the white square in the lower right corner?

I've created an iTunes like subclass of NSScroller, however if both the horizontal and vertical scrollers are visible in an NSScrollView or NSTableView I'm left with an ugly white square in the lower right corner. Anyone has a clue on where to add…
mekentosj
  • 116
  • 6
1
2 3 4