Initializes a newly allocated NSRulerView to have orientation
(NSHorizontal
or NSVertical
) within a
.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
init(scrollView: NSScroll View?, orientation: NSRuler View.Orientation)
Discussion
The new ruler view displays the user’s preferred measurement units and has no client, markers, or accessory view. Unlike most subclasses of NSView, no initial frame rectangle is given for NSRulerView; its containing NSScrollView adjusts its frame rectangle as needed.
This method is the designated initializer for the NSRulerView class. Returns an initialized object.