Returns an array of text ruler objects for the current selection.
- 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 ruler markers are returned.
An array of
NSRuler objects representing such things as left and right margins, first-line indent, and tab stops.
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 add new kinds of markers or otherwise customize ruler support.
You can set the returned ruler markers with the