Instance Method

addFloatingSubview:forAxis:

Adds a floating subview to the document view.

Declaration

- (void)addFloatingSubview:(NSView *)view forAxis:(NSEventGestureAxis)axis;

Parameters

view

The view that can float.

axis

The event gesture axis on which the view can float. A view can float on only one axis at a time.

Discussion

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 NSTableView floating group rows (floatsGroupRows).

NSScrollView ensures that any scrolling on the non-floating axis is performed visually synchronously with the document content.

See Also

Managing the Views

contentView

The scroll view’s content view, the view that clips the document view.

documentView

The view the scroll view scrolls within its content view.