The purple rectangle is an
NSView. In its
awakeFromNib method I call
[[NSViewController alloc] initWithNibName:@"nib" bundle:nil]].
The red rectangle is an
@"nib". This view includes the vertical scroll bar.
The green box is an
NSBox nib which is selected by
<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/TTDVR.png" data-original="https://i.stack.imgur.com/TTDVR.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />
How would one observe and get the scroll bar knob's position on the fly when scrolling through a list (i.e. while dragging the knob)?
Thanks for the help :)Answer1:
While not an <em>exact</em> duplicate, the answer is the same as the one found here: <a href="https://stackoverflow.com/questions/4077843/how-to-detect-scrolling-for-nsoutlineview" rel="nofollow">How to detect scrolling for NSOutlineView?</a>