Returns the accessory view that the text system uses for its ruler.
- macOS 10.0+
The text view using the layout manager.
Sets the state of the controls in the accessory view; must not be
The ruler view whose accessory view is returned.
true, the accessory view is enabled and accepts mouse and keyboard events; if
The accessory view containing tab wells, text alignment buttons, and so on.
If you have turned off automatic ruler updating through the use of
uses so that you can do more complex things, but you still want to display the appropriate accessory view, you can use this method.
This method is invoked automatically by the
NSText object using the layout manager. You should rarely need to invoke it, but you can override it to customize ruler support. If you do use this method directly, note that it neither installs the ruler accessory view nor sets the markers for the
NSRuler object. You must install the accessory view into the ruler using the
accessory. To set the markers, use
ruler to get the markers needed, and then send
markers to the ruler.