Is there a way to add an array of NSPopoverTouchBarItems into a NSScrollView?
Currently, my view hierarchy resembles the below list.
- NSTouchBar
- NSCustomTouchBarItem
- NSScrollView
- NSStackView
- Array of NSButtons
- NSStackView
- NSScrollView
- NSCustomTouchBarItem
The above hierarchy outputs the following screenshot.
In sum, the end goal is to replace the array of NSButtons with NSPopoverTouchBarItems.

I believe what you need is the use of
NSScrubberto be able to scroll or have fixed position of multiple buttons includingNSPopoverTouchBarItemhttps://developer.apple.com/documentation/appkit/nsscrubber
Check out this repository for more information and sample codes that might help you:
https://github.com/loretoparisi/touchbar