Instance Property

reservedThicknessForAccessoryView

The room available for the receiver’s accessory view to thickness.

Declaration

@property CGFloat reservedThicknessForAccessoryView;

Discussion

If the ruler is horizontal, thickness is the height of the accessory view; otherwise, it’s the width. NSRulerViews by default reserve no space for an accessory view.

An NSRulerView automatically increases the reserved thickness as necessary to that of the accessory view. When the accessory view is thinner than the reserved space, it’s centered in that space. If you plan to use several accessory views of different sizes, you should set the reserved thickness beforehand to that of the thickest accessory view, in order to avoid retiling of the NSScrollView.

See Also

Ruler layout

scrollView

The NSScrollView that owns the receiver to scrollView, without retaining it.

orientation

The orientation of the receiver to orientation.

NSRulerOrientation

These constants are defined to specify a ruler’s orientation and are used by orientation.

reservedThicknessForMarkers

The room available for ruler markers to thickness.

ruleThickness

The thickness of the area where ruler hash marks and labels are drawn.

requiredThickness

The thickness needed for proper tiling of the receiver within an NSScrollView.

baselineLocation

The location of the receiver’s baseline, in its own coordinate system.

flipped

A Boolean that indicates if the ruler view's coordinate system is flipped.