Instance Property

verticalRulerView

The scroll view’s vertical ruler view.

Declaration

@property(strong) NSRulerView *verticalRulerView;

Discussion

The value of this property is nil when the scroll view has no vertical ruler view.

If the scroll view is set to display a vertical ruler view and doesn’t yet have one, this property creates an instance of the ruler view class set using the class method setRulerViewClass:. You can use this property to override the default ruler class set using the class method setRulerViewClass:.

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.

hasVerticalRuler

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

rulersVisible

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