rect(for:)
Returns the rectangle occupied by aPart, which for this method is interpreted literally rather than as an indicator of scrolling direction.
Declaration
func rect(for partCode: NSScroller.Part) -> NSRectDiscussion
See NSScroller.Part for a list of possible values for aPart.
Note the interpretations of NSScrollerDecrementPage and NSScrollerIncrementPage. The actual part of an NSScroller that causes page-by-page scrolling varies, so as a convenience these part codes refer to useful parts different from the scroll buttons.
Returns NSZeroRect if the part requested isn’t present on the receiver.