NSScrollView - scroll bar not appearing

Hi,


I wrote a small app to test if i can embed an NSSplit view within an NSScroll view. In the app, i have an nssplit view embeded within a nsscroll view; the two views are drawn in a .xib file. At run time, i added to nssplit view three views of uiviewControllers and each view is a NSTableView; the tableView is also drawn in a xib file.

At run time, i have two and a half panes on the split view visible and I try to swipe to get the horizontal scroll bar so that i can see the rest of the last pane. But the horizontal scroll bar does not appear. When i resize the window, i can see the horizontal scroll bar appear during resizing. I have tried to resolve it for a while but have no luck. Does anybody have any insight about nsplitview embedded in a scroll view ? I am also using autolayout constraints on the NSSplitView to attach to the top, bottom and left to the ClipView; could that be an issue ?


thank you in advance!


leo

Did you set the window size smaller than the view?

I was able to get some help from Apple with this issue thru apple developer program.

In Mac, NSTableView is embeded within a scrollview as part of the package; it turns out that the tableview scollview is capturing the scroll events and therefore, the outside scroll view does not get any; thats why when i scroll my app, the horizontal scroll bar does not appear.


Solution is to subclass the tableview scrollview and to pass it up to the responder chain.

At the end, I meant to say 'to pass the scroll events up to the responder chain'.

NSScrollView - scroll bar not appearing
 
 
Q