---
title: scrollView
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsrulerview/scrollview
---

# scrollView

The NSScrollView that owns the receiver to scrollView, without retaining it.

## Declaration

```swift
weak var scrollView: NSScrollView? { get set }
```

## Discussion

Discussion This method is generally invoked only by the ruler’s scroll view; you should rarely need to invoke it directly.

## See Also

### Related Documentation

- [verticalRulerView](appkit/nsscrollview/verticalrulerview.md)
- [horizontalRulerView](appkit/nsscrollview/horizontalrulerview.md)

### Ruler layout

- [orientation](appkit/nsrulerview/orientation-swift.property.md)
- [NSRulerView.Orientation](appkit/nsrulerview/orientation-swift.enum.md)
- [reservedThicknessForAccessoryView](appkit/nsrulerview/reservedthicknessforaccessoryview.md)
- [reservedThicknessForMarkers](appkit/nsrulerview/reservedthicknessformarkers.md)
- [ruleThickness](appkit/nsrulerview/rulethickness.md)
- [requiredThickness](appkit/nsrulerview/requiredthickness.md)
- [baselineLocation](appkit/nsrulerview/baselinelocation.md)
- [isFlipped](appkit/nsrulerview/isflipped.md)
