Instance Property

reservedThicknessForMarkers

The room available for ruler markers to thickness.

Declaration

@property CGFloat reservedThicknessForMarkers;

Discussion

The default thickness reserved for markers is 15.0 PostScript units for a horizontal ruler and 0.0 PostScript units for a vertical ruler (under the assumption that vertical rulers rarely contain markers). If you don’t expect to have any markers on the ruler, you can set the reserved thickness to 0.0.

An NSRulerView automatically increases the reserved thickness as necessary to that of its thickest marker. If you plan to use markers of varying sizes, you should set the reserved thickness beforehand to that of the thickest one 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.

reservedThicknessForAccessoryView

The room available for the receiver’s accessory view 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.