Instance Property

hasVerticalRuler

A Boolean that indicates whether the scroll view keeps a vertical ruler object.

Declaration

@property BOOL hasVerticalRuler;

Discussion

When the value of this method is YES, the scroll view allocates a vertical ruler the first time it’s needed.

Display of rulers is controlled using the rulersVisible property.

See Also

Managing Rulers

rulerViewClass

Returns the default class to be used for ruler objects in NSScrollViews.

hasHorizontalRuler

A Boolean that indicates whether the scroll view keeps a horizontal ruler object.

horizontalRulerView

The scroll view’s horizontal ruler view.

verticalRulerView

The scroll view’s vertical ruler view.

rulersVisible

A Boolean that indicates whether the scroll view displays its rulers.