Questions tagged [nsscrollview]

Apple OS X Developer API : NSScrollView class is the central coordinator for the Application Kit’s scrolling machinery

548 questions
0
votes
1 answer

Hiding scrollbar of NSScrollView

Ok, I'm stumped here. I have a few scrollable views in my window, two NSTableViews, and an NSTextView. I'd like to have the scrollbar to hide when not in use, and used the setting of the NSScrollView in IB in Xcode to do so. For the NSTextView it…
koen
  • 5,383
  • 7
  • 50
  • 89
0
votes
0 answers

NSTableHeaderView Resizing Makes Table Rows Move Down

I've created a subclass of NSScrollView which is set as the class of a scroll view with table view in IB. I increased the height of the table's header view and added a label to act as the title for the table view. The problem is that the table…
rdelmar
  • 103,982
  • 12
  • 207
  • 218
0
votes
1 answer

How to make a scrolling bar of buttons (buttons bar) with Cocoa?

I would like to have buttons inside a scroll view (or another solution to creating a scrollable button bar). I have buttons placed side by side in a row along the top of a view. As a user resizes the window to be less wide, fewer buttons can be…
A A
  • 147
  • 1
  • 2
  • 8
0
votes
1 answer

NSTextView : contents are gone when scrolling, and shown when on mouseover

So this is my issue : I've got an an NSTextView with lots of content in it (white foreground on black background, if that matters), residing in a Sheet (triggered with beginSheet:modalForWindow:). The thing is that, when the I'm scrolling, the…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
-1
votes
0 answers

Custom find-bar view in NSScrollView

Is there a way to insert a custom Find bar in NSScrollView, so that it plugs in properly with the find-system of Cocoa. I did some digging around NSTextFinder, NSTextFinderClient and NSTextFinderClient. Seems like they facilitate various search…
Kaunteya
  • 3,107
  • 1
  • 35
  • 66
-1
votes
1 answer

How to calculate the correct location of a vertical NSRulerMarker?

What is the correct formula for the location of an NSRulerMarker on a vertical NSRulerView, if the client view is flipped? The situation: I have a view (let's call it the "main view") that is embedded in an NSScrollView with rulers, and it has…
fbitterlich
  • 882
  • 7
  • 24
-1
votes
1 answer

How to prevent jerking and horizontal drift when vertical scrolling in a MacOS NSScrollView

In a MacOS application being written in Swift, I have a vanilla, sub-classed NSScrollView that allows magnification. The documentView it presents is not very wide and completely fits horizontally within the bounds of the NSScrollView's display…
jsbox
  • 304
  • 2
  • 11
-1
votes
1 answer

How to make scrollview up or down step equal to the height of table cell in NSTableView?

I have a view-based NSTableView, there are multiple rows (e.g, 20), everytimes when i scroll down the scroller, i want it to scroll to the next row. For example, right now row 5 is selected, then scroll down will select row 6. But right now, the…
jimwan
  • 1,086
  • 2
  • 24
  • 39
1 2 3
36
37