Skip to main content
-1 votes
0 answers
45 views

NSScrollView starts scrolled down instead of showing top content on launch

I created a simple project where an NSScrollView contains a vertical NSStackView with several colored square NSView items. However, when I build and run the app, it launches already scrolled down by ...
typehint's user avatar
  • 101
4 votes
2 answers
148 views

Strange NSScrollPocket height on my NSTableView in fullscreen mode on macOS Tahoe 26

Since I updated on macOS Tahoe 26, in fullscreen only, my NSTableView in Objective-C has the first two rows hidden by a blurred rectangle which appears at the level of my NSScrollView with an ...
Tom's user avatar
  • 653
0 votes
0 answers
62 views

Struggling with NSScrollView

I'm still discovering swift and the various frameworks. So I'm now trying to create scrolling composition with a grid - containing images - and an NSStackView at on top. However, I'm running into a ...
unindiendanslaville's user avatar
0 votes
2 answers
129 views

Scroll multiple views with one ScrollView

I have two NSTextView in an HStack. The contents of each text view can exceed its horizontal space. I would like to control both text views with a single horizontal scroll bar. Here is a clip of ...
Mgill404's user avatar
  • 115
0 votes
1 answer
111 views

NSScrollView's scroller not autohiding on Sequoia

The NSScrollView's scroller remains visible on macOS Sequoia despite the autohidesScrollers being true. On macOS Sonoma and lower the scroller is displayed as a subview of NSScrollView and correctly ...
Marek H's user avatar
  • 5,642
0 votes
0 answers
47 views

NSScrollView with large content is creating a huge number of tiles upon redraw - in some cases

The main view of my application is an NSScrollView. When the document size is large, say 24k x 17k pixels (approximately 30 x 30 landscape pages), when the magnification of that view changes from ...
Todd Stanley's user avatar
0 votes
1 answer
54 views

Weird Scrollbar UI element in programmatically created NSScrollView (objective-c)

i am on macOS, objective-C. Not Swift, not ios. I have a programmatically created NSScrollView with a nested NSTableView. The scrollbar shows some kind of square element. This element lies above the ...
Pat_Morita's user avatar
  • 3,575
0 votes
0 answers
55 views

NSScrollView doesn't show scrollbars in macOS Sonoma

I have a Swift 4 app with an NSView showing data diagrams in an NSScrollView. That worked well until macOS 12. I didn't use any constraints. Diagram in the app: Now in macOS 14 and Swift 5, the ...
heimi's user avatar
  • 539
0 votes
1 answer
139 views

Why are the contents of an NSScrollView aligned to the bottom instead of the top?

I'm trying to use an NSScrollView where the contents may be (vertically) smaller or taller than the window, changing dynamically at runtime. (This will later be a stack view with multiple views that ...
fbitterlich's user avatar
0 votes
3 answers
184 views

Why NSTextView scrolls to bottom when loaded asynchronously?

I have a simple Swift code for a macOS app: // ViewController.swift import Cocoa let string = (1...30).map { "line \($0)" }.joined(separator: "\n") class ViewController: ...
luin's user avatar
  • 1,995
0 votes
1 answer
78 views

Unable to remove left & right borders on NSTableview in an NSScrollView

I have code that creates an NSTableView in a NSScrollView. It works but I end up with borders on the left and right side of the displayed table. The table call in ContextView has a frame but ...
Chris's user avatar
  • 165
0 votes
0 answers
187 views

How can I ignore all touch events in WKWebView and its enclosingScrolllView

I have a WKWebView (discussed in this page - How can I paginate html in a wkwebview?) and I'm trying a different approach to solving the problem discussed there. What I want to do is trap scroll ...
headbanger's user avatar
  • 1,112
0 votes
1 answer
85 views

override NSScrollView "page scroll" behaviour

I'd like to implement a custom "page scroll" behaviour for NSScrollView, i.e., what should happen when the scroll "rail" is clicked outside the scroll knob. How do I detect that ...
jeanlain's user avatar
  • 475
1 vote
0 answers
73 views

NSTextView is blank but mouse over scrollbar makes the content visible

I have an NSTextView inside an NSClipView inside an NSScrollView. It looks like this: I set the text of the NSTextView like so: [tv setString:@"Hello World"]; The window that contains the ...
Andreas's user avatar
  • 10.4k
0 votes
0 answers
68 views

Detect when NSScrollView can be scrolled

How can I detect when there is more text than is showing in NSScrollView? I have tried various forms of this: if (self.scrollView.contentSize.height > self.scrollView.bounds.size.height) { ...
user1092808's user avatar

15 30 50 per page
1
2 3 4 5
37