Questions tagged [nsclipview]

In Cocoa, an NSClipView contains and scrolls the document view displayed by an NSScrollView. You normally don’t need to program with NSClipViews, as NSScrollView handles most of the details of their operation.

In cocoa, an NSClipView contains and scrolls the document view displayed by an NSScrollView. You normally don’t need to program with NSClipViews, as NSScrollView handles most of the details of their operation.

https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSClipView_Class/index.html

9 questions
16
votes
4 answers

How do you get NSScrollView to center the document view in 10.9 and later?

There are lots of examples out there of how to get NSScrollView to center its document view. Here are two examples (which are so similar that somebody is copying somebody without attribution, but the point of how is…
uchuugaka
  • 12,679
  • 6
  • 37
  • 55
3
votes
0 answers

How to control scrollview overdraw with NSView's prepareContentInRect?

I am trying to understand its usage better in order to improve scrolling performance on OSX. More specifically, I am trying to eradicate the "flashing/flickering" on the side of the screen as you scroll fast and AppKit runs into non-overdrawn…
Sam
  • 2,745
  • 3
  • 20
  • 42
2
votes
1 answer

NSScrollView Confusion

Forgive me for this being a fairly vague question on NSScrollView classes. I am just not really understanding them, despite having read up on them a bunch. I have a NSViewController subclass which has a xib. In this view I drop in an NSScrollView. I…
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
1
vote
0 answers

NSScrollView and copiesOnScroll behavior

I am trying to understand the behavior of copiesOnScroll in a typical NSScrollView/NSClipView/NSView setup. I’ll refer to the NSView or documentView as MyCustomView throughout, and just note that this is a large view that can take substantial time…
ccianflone
  • 11
  • 3
1
vote
1 answer

How to control drawing of NSTableView in NSScrollView?

How can I get NSTableView to always show the same columns regardless of the horizontal scroller position? In the rightmost visible column I have custom cell views. I want the horizontal scroller to control what is being drawn in these custom views.…
mhavu
  • 41
  • 7
0
votes
0 answers

Remove edges and scroll from PDFView

I want to display a PDF in my macOS app using PDFKit. Therefore I've added a simple PDFView in IB. I want each slide of the PDF to be displayed separately and non intractable, just like an image. The only thing that should be possible is to walk…
Codey
  • 1,131
  • 2
  • 15
  • 34
0
votes
1 answer

Can't stack views correctly in a NSClipView

I'm getting mad at this code because it just shows the last view (in it's correct position) and it forgets to paint the others... // Gets a stack of devices let volumes = getDevices() var index = 0 for device in volumes { let volume =…
Cristian
  • 654
  • 1
  • 13
  • 30
0
votes
1 answer

Why is my NSClipView subclass drawing with a black background unless I specify isOpaque NO? NSClipView itself doesn't do so

I want to create an arbitrary canvas in Cocoa; that is, a drawing area where the entire visible area can be drawn on and with scrolling limits chosen by the programmer and have no effect on whether I can draw on the entirety of the visible area.…
andlabs
  • 11,290
  • 1
  • 31
  • 52
0
votes
1 answer

Overhang subviews getting created twice Exception MAC

I am getting this exception in MAC where I am creating two Tab View Item in a Window.I have a table view for each tab. I searched a lot but could not see any soultions? Can anybody help me…
sheetal
  • 3,014
  • 2
  • 31
  • 45