<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRulerView/scrollView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSRulerView(py)scrollView"
  },
  "title" : "scrollView"
}
-->

# scrollView

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

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

## Discussion

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

## See Also

[`verticalRulerView`](/documentation/AppKit/NSScrollView/verticalRulerView)

The scroll view’s vertical ruler view.

[`horizontalRulerView`](/documentation/AppKit/NSScrollView/horizontalRulerView)

The scroll view’s horizontal ruler view.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)