I need fixed-size NSTextViews inside a larger scrolling window. IB requires that the textviews be inside their own NSScrollViews, even though their min/max sizes are fixed so that they won’t actually scroll. When trackpad gestures are made within the textview frames (regardless of whether they have focus), they are captured by the textviews’ scrollviews, so nothing happens.
How do I tell the textviews’ scrollviews to pass scroll events up to the window’s main scrollview? (Or perhaps I should be asking how I tell the window’s main scrollview to handle these events itself and not pass them on to its child scrollviews.)
The IB structure is like this:
- window
- window’s content view
- big scrollview for window (desired target for scroll events)
- box
- swappable content view in separate xib
- scrollview for textview
- textview
- scrollview for textview
- swappable content view in separate xib
- box
- big scrollview for window (desired target for scroll events)
- window’s content view