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

# checkSpaceForParts()

Checks to see if there is enough room in the receiver to display the knob and buttons.

```
func checkSpaceForParts()
```

## Discussion

The  [`usableParts`](/documentation/AppKit/NSScroller/usableParts-swift.property) property contains the state calculated by this method. You should never need to invoke this method; it’s invoked automatically whenever the scroller’s size changes.

---

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)