Adds a floating subview to the document view.
- macOS 10.9+
The view that can float.
The event gesture axis on which the view can float. A view can float on only one axis at a time.
Floating subviews of the document view do not scroll like the rest of the document. Instead these views appear to float over the document. For example, see
NSTable floating group rows (
NSScroll ensures that any scrolling on the non-floating axis is performed visually synchronously with the document content.